且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SQL如何查找具有特定列的最高值的行

更新时间:2022-10-17 22:53:46

SELECT Max(MYINDEX) FROM table WHERE NAME = [insertNameHere]

EDIT: to get the whole row:

Select * //never do this really
From Table
Where MYINDEX = (Select Max(MYINDEX) From Table Where Name = [InsertNameHere]

相关阅读

技术问答最新文章