取前10条数据sql,oracle,mysql写法

sql写法,F5运行

select top 10 * from  Ecp_Chat_AllotService 

 

oracle写法,F8运行

select * from  Ecp_Chat_AllotService  where rownum<=10

 

mysql写法 ,F9运行

SELECT  * FROM USER LIMIT 0,10

 

后面补充自增设置,

sql    设置属性

oracle 系列

mysql 未知

posted @ 2011-07-05 13:38  艾伦  阅读(873)  评论(0编辑  收藏  举报