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.
数据库中的每条记录都有多个列。
如何选择那些同时属于X列和Y 列中前 100 条记录的记录?
select * from table_name where column_x in ( select top 100 column_x from table_name order by column_x ) and column_y in ( select top 100 column_y from table_name order by column_y );