循环插入500条数据
来源:互联网 发布:python 截断文件 编辑:程序博客网 时间:2024/05/01 05:59
--定义两个变量
declare @i int
declare @insertvalue varchar(50)
--设置i的初始值
set @i=0
--循环500
while(@i<500)
begin
set @i=@i+1
set @insertvalue=cast(@i as varchar) --i类型转换
INSERT INTO [Vendition].[dbo].[Customers]
([CustomerID]
,[CompanyName]
,[ContactName]
,[ContactTitle]
,[Address]
,[City]
,[Region]
,[PostalCode]
,[Country]
,[Phone]
,[Fax])
VALUES
(@insertvalue
,'asdasd'
,'萨斯大声'
,'asdasd'
,'asdasd'
,'asdasd'
,'sdfsdf'
,'safds'
,'qwewr'
,'dvds'
,'eree')
end
select * from Customers order by CustomerID asc
记录一些最基础的语法,以免淡忘
- 循环插入500条数据
- SQL 循环插入多条数据
- mysql库循环插入600条数据
- sql 循环插入20万条数据
- SQL 循环插入多条数据
- SqlServer循环插入10000条数据
- mysql循环插入52w条数据
- thinkphp5-循环插入百万条数据
- sql server 2000中循环插入100万条数据
- 一次性循环插入 5000条 记录到sqlserver 数据中
- oracle存储过程循环插入10000条数据
- 小黑小波比.利用for循环插入多条数据
- mysql通过存储过程循环插入400条数据
- oracle使用for循环插入10000条数据
- [Php-Mysql]多条数据的循环插入和一次性插入的性能测试
- 多条数据插入
- 插入单条数据
- 数据插入多条
- 在类里运用try catch出现的错误
- VC命名规则
- NHibernate实现CRUD
- Flash 展示JQuery 的Effects 效果
- 【每日一文101111】美言
- 循环插入500条数据
- 未来计划
- Android最佳学习方法
- 多个jmeter命令行实例需要注意的
- 敏捷需求分析五大关键因素
- asp.net 等比例 生成 高清图片
- dasfds
- 关于struct device_driver结构中的probe探测函数的调用(内核版本:2.6.29)
- 有助于Flash平台开发提速的50个学习资源