2
我有一個表tbl_test:的Sql內部查詢問題
create table tbl_test (
tabid int identity
)
與價值觀:
Insert into tbl_test values 1 union 2 union 3 .... union 1000
查詢:
select MAX(b.tabid) from
(
select top 100 * from tbl_test
) as b
我希望這個查詢返回100,而是它返回1000.