几大数据库返回前n行的关键字

1173阅读 0评论2008-11-08 aqcjsy1
分类:

Oracle
select * from table where rownum < x;
 
db2
select * from table fetch first x rows only;
 
teradata
select top x * from table;
上一篇:db2权限之ALL PRIVILEGES和control的区别
下一篇:oracle精简客户端配置