I have created a table (with only 2 fields) with the following query
There are 20,000 users in this table with ids from 1 to 20,000
On executing the following query
returns only 283 ids separated with ','
Code:
"CREATE TABLE `users` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `name` VARCHAR( 20 ) NOT NULL ) ENGINE = MYISAM ;"
On executing the following query
Code:
select group_concat(id separator ',') from users
Comment