期刊问答网 论文发表 期刊发表 期刊问答

如何将论文导入sql

  • 回答数

    4

  • 浏览数

    242

fulicheng
首页 > 期刊问答网 > 期刊问答 > 如何将论文导入sql

4个回答 默认排序1
  • 默认排序
  • 按时间排序

carrieeee

已采纳
当然有,你可以使用BCP、BULK INSERT等 语法 参看我的博客

如何将论文导入sql

189 评论(9)

xcyqe

先把你的数据导入到表temptable中 update oldtableset Brand=(select brand from temptable o where Partno=Partno,Quantity=Quantity,UserId=Quantity ), DateCode=(select DateCode from temptable o where Partno=Partno,Quantity=Quantity,UserId=Quantity ), Price=(select Price from temptable o where Partno=Partno,Quantity=Quantity,UserId=Quantity ), Package=(select Packagefrom temptable o where Partno=Partno,Quantity=Quantity,UserId=Quantity ), Note=(select Note temptable o where Partno=Partno,Quantity=Quantity,UserId=Quantity ) where exists( select * from temptable owhere Partno=Partno,Quantity=Quantity,UserId=Quantity ) delete temptable t--注意是templtable 不要把以前的数据删除了,这里是删除--以前的数据 where exists( select * from oldtemp where partno=Partno and Quantity=Quantity and UserId=UserId ) --不存在的数据插入表中 insert into oldtable( UserId,PartNo,Brand,DateCode,Quantity,Price,Package,Note ) select UserId,PartNo,Brand,DateCode,Quantity,Price,Package,Note from temptable
199 评论(11)

strootcn

1、启动SQL企业管理器,选中 表格:1、点击鼠标右键 2、所以任务 3、导入数据2、选择数据源3、选择文件路径4、按txt文本格式,选择相应的分隔符和间距,就可以了。
80 评论(11)

wafcr831

SQL Server 么 我记得2005 直接有个导入数据吧 数据格式可以是xt 和Excel等 你先建个数据库表导出来看一下格式是怎样的 都是选择 没什么高难度的
161 评论(11)

相关问答