tnblog
首页
视频
资源
登录

SQL server 带条件插入

3777人阅读 2021/11/12 11:52 总访问:1056457 评论:0 收藏:0 手机
分类: Java

insert into 表(条码号,输入卷号,累计卷号,出货卷号) select 条码号,输入卷号,累计卷号,出货卷号 from 表 where 条码号 in ("700011", "700012", "100010")

insert into table(出库卷号) select 出库卷号 from tableA where tableA.条码号='xxxx'

   insert into Forms_UserInfo(forms_id, userinfo_id ) select top 1 f.Id,u.Id from Forms f, UserInfo u 

评价
没有个性,不需要签名
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2024TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
欢迎加群交流技术