Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有下表,我想获得一个包含所有指针最低行的列表。我怎么能意识到这一点?
这就是我喜欢得到的:
问题是它应该是动态的!因此,“SELECT * FROM TABLE WHERE POINTER = 1”对我来说没有用。在另一时间,最低指针可能是 2 或 3 等等......
select * from your_table where pointer = (select min(pointer) from your_table)
您可以使用子查询来确定列中的最小值。
SELECT * FROM tableName WHERE Pointer = (SELECT MIN(Pointer) FROM tableName)