原 mysql (@i:=@i+1)生成序号
版权声明:本文为博主原创文章,请尊重他人的劳动成果,转载请附上原文出处链接和本声明。
本文链接:https://www.91mszl.com/zhangwuji/article/details/1422
select
(@i:=@i+1) as lineNo,
bookmark_code,
bookmark_name
from m_bookmark,
(select @i:=0) as t
参考资料:
https://www.cnblogs.com/xxhxs-21/p/15953752.html
2023-02-21 17:43:08 阅读(453)
名师出品,必属精品 https://www.91mszl.com
博主信息