数据库常用语句整理
--查询
select * from emp;
--oracle 分页
SELECT *
FROM (
SELECT rownum AS rnum, e.*
FROM emp e
WHERE rownum <= 10
)
WHERE rnum >= 5;
--复制表
CREATE TABLE new_table
AS
SELECT *
FROM old_table;
参考资料
数据库常用语句整理
--查询
select * from emp;
--oracle 分页
SELECT *
FROM (
SELECT rownum AS rnum, e.*
FROM emp e
WHERE rownum <= 10
)
WHERE rnum >= 5;
--复制表
CREATE TABLE new_table
AS
SELECT *
FROM old_table;
参考资料