MySQL
無primary key,取倒數資料
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)有primary
order by id descData type
BLOB vs CLOB
取得當前 MySQL 版本號
Last updated