我想以逗号分隔格式获取表的所有自动增量id,一个查询是否可能?

Table structure is like given below

id           Name
1            Mukesh
2            Shiwam
3            deepak
4            ------

I want in resultant Like 1,2,3,4 it is possible?

SELECT GROUP_CONCAT(id) FROM yTable

GROUP_CONCAT

Wth do you need this?

Use GROUP_CONCAT():

SELECT GROUP_CONCAT(id)
FROM table

It's as simple as it gets. Cularis' answer specifies using the , separator, but it's not actually necessary, unless you want spaces between the commas:

32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49

Which you didn't specify in your OP.