最好的方法当然就是在提取数据的时候连行号也一起取出来,SQL
Server中有row_number()函数,但是最近做的一个项目用的是MYSQL的,上网查了一下,没有现成的函数,网上说要自己写,懒得写了,直接在程序中输出行号就好,在绑定的时候可以用
来绑定行号的,但是这种做法如果有分页的话,那么行号又是从1开始了。
【mysql】 【函数】 【Server】 【string】 【index】 …
Community journal
Follow the feed
The latest from the MySQL community
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
Showing entries 11 to 11 of 11
« Previous |
Next »
Dec
26
2011
« Previous |
Next »