常用的sql语句
2010-01-11 16:03
141 查看
将查询结果 重新 生成一张表
create table TABBLE_NAME
as
select * from TABLE_NAME
------------------------------------------
分页时用到的, 从第几数据到第几条数据
select v.* from
(select rownum xh,s.* from table_name s where rownum<=结束) v where v.xh>=开始
create table TABBLE_NAME
as
select * from TABLE_NAME
------------------------------------------
分页时用到的, 从第几数据到第几条数据
select v.* from
(select rownum xh,s.* from table_name s where rownum<=结束) v where v.xh>=开始