Fork me on GitHub
摘要: 说明,这个id是字符串类型,但是实际值是一个整数,获取最大值的方法是: select max(cast(id as SIGNED)) from table 另外,mysql生成伪列的方法: SELECT @rownum:=@rownum+1 AS rownum, t.* FROM (SELECT @ 阅读全文
posted @ 2019-12-21 11:48 猿起缘灭 阅读(3109) 评论(0) 推荐(0) 编辑