发布网友 发布时间:2022-04-20 15:12
共3个回答
热心网友 时间:2023-10-04 15:26
--方法一
select top 10 from (select * from sysobjects) as a where 1=1
-- 方法二
with ts as
(
select * from sysobjects
)
select top 10 * from ts where 1=1
热心网友 时间:2023-10-04 15:26
sql with as 用法(适用sqlserver,好像oracle也适用)
热心网友 时间:2023-10-04 15:27
select * from (select * from tablename1) as tablename2