Last updated 5 years ago
Was this helpful?
declare @a int declare @sql varchar(5000) set @a=(select count(*)-100 from t1) set @sql=('select * from t1 where not f1 in (select top '+convert(varchar(10),@a)+' f1 from t1)') exec(@sql)
參考資料:()
order by id desc
bit 的資料 應該打成 b'101001'
BLOB -- BLOB CLOB -- TEXT
SELECT version()
SELECT @@version