SQL数据库批量添加数据

 时间:2024-10-14 10:55:43

1、创建测试表,create table test_batch(id number, v_date d锾攒揉敫ate);

SQL数据库批量添加数据

2、先看插入原始表数据;select t.*, rowid from test_day t;

SQL数据库批量添加数据

3、批量插入测试数据,insert into test_batch select * from test_day;commit;

SQL数据库批量添加数据

4、查询表的记录,select t.*, rowid from test_batch t; 可以发现数据一致。批量添加数据完成。

SQL数据库批量添加数据

  • sql删除语句
  • insert into语句怎么用
  • SQL怎么一次查询两个表里的内容
  • SQL怎么查询字段值的长度
  • Duplicate column name错误怎么解决?
  • 热门搜索
    数学手抄报图片四年级 庆元旦迎新年手抄报 庆国庆手抄报简单漂亮 国学手抄报 草房子手抄报 戏曲大舞台手抄报 手抄报花边边框 欢庆六一节手抄报 清明节的手抄报三年级 中秋节手抄报设计图