#!/usr/bin/perl

print <<EOF;
drop table if exists trunc;
CREATE TABLE `trunc` (
  `i` int(11) NOT NULL default '0',
  KEY `i` (`i`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
EOF

sub gen {
  my $vl = shift;
  my $cntr = shift;
  
  for $i (1 .. $cntr) {
    print "insert into trunc values($vl); \n";
  }

};

gen( 2147483647 , 76047);
gen( 1421638051 , 3);
gen( 985505567,  3 );
gen( 1046160975 , 2 );
gen( 141017389 , 2 );
gen( 848130626 , 2);
gen( 888665819 , 2 );
gen( 1001437915 , 2 );
gen( 118824892 , 2 );
gen( 2104712727 , 2 );
