SQL数据库批量添加数据

2025-05-20 09:56:56

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数据库批量添加数据

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢