Commit f2cb8a15 authored by yiwenshao's avatar yiwenshao

fix bug

parent 9f99daac
...@@ -2,7 +2,7 @@ function generate_insert_int(){ ...@@ -2,7 +2,7 @@ function generate_insert_int(){
head=$1 head=$1
pipe=$2 pipe=$2
count=$3 count=$3
for((i=1;i<$count;i++))do for((i=1;i<=$count;i++))do
res=$head res=$head
for((j=1;j<$pipe;j++))do for((j=1;j<$pipe;j++))do
res="${res}($RANDOM)," res="${res}($RANDOM),"
...@@ -14,4 +14,4 @@ function generate_insert_int(){ ...@@ -14,4 +14,4 @@ function generate_insert_int(){
} }
h="INSERT INTO int_table VALUES " h="INSERT INTO int_table VALUES "
generate_insert_int "$h" 10 10 generate_insert_int "$h" 100 10000
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment