sql connect print ================ insert data $dbNamme = d1 $tbPrefix = ct $tbNum = 10 $rowNum = 100 $tstart = 1640966400000 # 2022-01-01 00:00:00.000 sql use $dbNamme $loop_cnt = 0 loop_insert: print ====> loop $loop_cnt insert $loop_cnt = $loop_cnt + 1 $i = 0 while $i < $tbNum $tb = $tbPrefix . $i $x = 0 while $x < $rowNum $c = $x / 10 $c = $c * 10 $c = $x - $c $binary = ' . binary $binary = $binary . $c $binary = $binary . ' #print ====> insert into $tb values ($tstart , $c , $x , $binary ) #print ====> insert into ntb values ($tstart , $c , $x , $binary ) sql insert into $tb values ($tstart , $c , $x , $binary ) sql insert into ntb values ($tstart , $c , $x , $binary ) $tstart = $tstart + 1 $x = $x + 1 endw #print ====> insert rows: $rowNum into $tb and ntb $i = $i + 1 # $tstart = 1640966400000 endw goto loop_insert