全球今日讯!select top 1_select top

来源: 时间:2023-03-27 09:18:56


(相关资料图)

1、不同数据库写法不同,比如在SQL Server,返回前5条数据的写法:

2、select top 5 * from 表名

3、oracle的写法:

4、select * from 表名where rownum <= 5

以上就是【select top 1,select top】相关内容。

上一篇:

下一篇:

Copyright ©  2015-2022 东方家居网版权所有  备案号:沪ICP备2020036824号-8   联系邮箱:562 66 29@qq.com