oracle 复制数据并插入当前表的语句
来源:互联网 发布:福州橙子网络 编辑:程序博客网 时间:2024/06/05 17:13
1.创建表
create table student(
id number(19) not null,
name varchar2(20),
sex number(2),
primary key(id)
)
2.创建序列
create sequence s_student
increment by 1
start with 1
nomaxvalue
nocycle
nocache
3.插入若干条数据
insert into student values(s_student.nextval, 'student001', 0);
insert into student values(s_student.nextval, 'student002', 0);
insert into student values(s_student.nextval, 'student003', 0);
insert into student values(s_student.nextval, 'student004', 0);
insert into student values(s_student.nextval, 'student005', 0);
4.复制数据并插入当前表的语句
insert into
student
select s_student.nextval, student.name, student.sex from student;
- oracle 复制数据并插入当前表的语句
- oracle复制表数据和表结构的sql语句
- oracle复制表数据sql语句
- Oracle 的插入语句
- oracle复制表的sql语句
- oracle复制表的sql语句
- Oracle复制表的sql语句
- oracle复制表的sql语句
- Oracle如何复制表的sql语句
- [oracle]表复制的sql语句
- SQL语句oracle中如何插入Date类型的数据
- SQL语句oracle中如何插入Date类型的数据
- Oracle insert语句执行之后返回插入数据的sys_guid()
- oracle 创建新表,并复制旧表数据
- 插入并更新修改的表数据
- Oracle中创建时间维度表并插入数据
- Oracle 生成一张测试表并插入随机数据
- oracle 生成id +创建表并插入数据
- get方式长度限制
- VC++----简繁体转换版本2
- android GestureDetector的用法和介绍
- POJ 1228 Grandpa's Estate (求稳定凸包)
- 关于UC厂商的四象限分布
- oracle 复制数据并插入当前表的语句
- 由于协议错误,会话将被中断。请重新连接到远程计算机
- VS2010编译警告:warning C4996: 'strcpy': This function
- Havel-Hakimi定理(判断一个序列是否可图)
- ubuntu的texteditor不能显示中文
- 关于汇编ARM指令DCD
- 错误消息:“当前页面的脚本导致 Internet Explorer 运行缓慢”
- js 回车提交
- ExtJs4.0在myeclipse里会出现内存不足,导致无法应用的问题解决