在SQL中自动填充表 [英] Auto Populate Table in SQL

查看:94
本文介绍了在SQL中自动填充表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是自动填充表格。我有1000个记录表,但出于测试目的,我需要插入更多数据。



My problem is auto populating Table. I have table with 1000 record in it, but for testing purpose, i need to insert more data.

ID | PersonID | Date | Time | Sum | TypeID | PlaceID | StatusID



所以我需要用10000条记录填充数据库,其中日期是2015年1月3日到2015年5月5日之间,时间是随机的,SUM介于100和1000之间,TypeID介于1和2之间,PlaceID介于1-10之间,StatusID介于1-3之间



我会感激任何帮助或建议。



提前致谢。


So i need to populate the database with 10000 records where the date is between 1/3/2015 and 1/5/2015, Time is Random, SUM Between 100 and 1000, TypeID between 1 and 2, PlaceID between 1-10, StatusID between 1-3

I would a appreciate any kind of help or suggestion.

Thanks in advance.

推荐答案

从这里开始:http://it.toolbox.com/blogs/db2luw/how-to-easily -populate-a-table-with-random-data-7888 [ ^ ]


这篇关于在SQL中自动填充表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆