清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
[root@hzvscmdb sql]# more insert_data.sql #!/bin/bash i=$1; while [ $i -le $2 ] do sqlplus hr/CCM%lab123@tony1521 <<EOF insert into emp3 values($i,'$3',$4); commit; quit; EOF let i=i+1 done echo "inset into emp3 table" ######运行代码 [root@hzvscmdb sql]# ./insert_data.sql 1 100000 dev 1 ######运行结果 SQL> select max(emp3_id) from emp3; MAX(EMP3_ID) ------------ 100000