在Mysql中产生序列

SQL:
SET @t=0;SELECT @t:=@t+1,field FROM table;

Mysql Manual 相关页面:
User Variables
Using User Variables

Post a Comment

Your email is never published nor shared. Required fields are marked *