mariadb 查询求解
有一个user表 ID 是主键 int查询1:
SELECT id FROM (
SELECT id FROM USER ORDER BY id DESC
)A
结果 :
id
--------
166442
166443
1
2
3
4
查询2
SELECT * FROM (
SELECT * FROM USER ORDER BY id DESC
)A
结果
id user_name
-------- ----------------
1 张三
2 李四
3
4
页:
[1]