创建测试样表
db2 "create table t (id int ,name char(100))"
shell下db2实例用户执行:
i=1
while (($i < 100000))
do
db2 "insert into t values(int(rand()*1000), char(int(rand()*1000)||'abc'||int(rand()*1000)))"
i=$((i=i+1))
sleep 2
done
主要用在批量构造数据,做相关测试工作
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26224914/viewspace-2158038/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26224914/viewspace-2158038/