Hello,
please let me know, if you are have some ideas about following:
----------------------------------------------------------------------------
------------------------------------------
mysql> set @a='1';
Query OK, 0 rows affected (0.00 sec)
mysql> select @a:=concat(@a,',',id) from message where id<10 and id>1;
+-----------------------+
| @a:=concat(@a,',',id) |
+-----------------------+
| 1,2 |
| 1,2,3 |
| 1,2,3,4 |
| 1,2,3,4,5 |
| 1,2,3,4,5,6 |
| 1,2,3,4,5,6,7 |
| 1,2,3,4,5,6,7,8 |
| 1,2,3,4,5,6,7,8,9 |
+-----------------------+
8 rows in set (0.01 sec)
mysql> select id from message where id in(@a);
+----+
| id |
+----+
| 1 |
+----+
1 row in set (0.00 sec)
----------------------------------------------------------------------------
------------------------------------------
Alexander
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php