查表的数据来拼接insert语句的写法2
来源:互联网 发布:win10 数据 丢失 编辑:程序博客网 时间:2024/05/05 13:37
select 'INSERT INTO dbo.sfa_t_TPlaVisitPlan
( usernumber ,
UserName ,
VisitDate ,
ExecuteStatus ,
CheckStatus ,
WorkTips ,
CheckContent ,
Remark ,
EnterpriseNumber ,
CreateOp ,
CreateTime ,
UpdateOp ,
UpdateTime ,
CheckOp ,
CheckTime,
a_id
)
VALUES ( ',UserNumber,' ,
''',ltrim(rtrim(UserName)),''',
''' ,VisitDate,''',
',ExecuteStatus,' ,
',CheckStatus,' ,
',WorkTips,' ,
',CheckContent,' ,
',Remark,' ,
',EnterpriseNumber,' ,
',CreateOp,' ,
',CreateTime,' ,
',UpdateOp,' ,
',UpdateTime,' ,
',CheckOp,' ,
',CheckTime,' ,',VisitPlanID,'
)
'
from xw_dl_1007724.dbo.sfa_t_tplavisitplan where visitplanid >= 12951
( usernumber ,
UserName ,
VisitDate ,
ExecuteStatus ,
CheckStatus ,
WorkTips ,
CheckContent ,
Remark ,
EnterpriseNumber ,
CreateOp ,
CreateTime ,
UpdateOp ,
UpdateTime ,
CheckOp ,
CheckTime,
a_id
)
VALUES ( ',UserNumber,' ,
''',ltrim(rtrim(UserName)),''',
''' ,VisitDate,''',
',ExecuteStatus,' ,
',CheckStatus,' ,
',WorkTips,' ,
',CheckContent,' ,
',Remark,' ,
',EnterpriseNumber,' ,
',CreateOp,' ,
',CreateTime,' ,
',UpdateOp,' ,
',UpdateTime,' ,
',CheckOp,' ,
',CheckTime,' ,',VisitPlanID,'
)
'
from xw_dl_1007724.dbo.sfa_t_tplavisitplan where visitplanid >= 12951
0 0
- 查表的数据来拼接insert语句的写法
- 查表的数据来拼接insert语句的写法2
- insert语句的另一种写法
- sql语句的拼接和写法
- insert into 语句的三种写法
- insert into 语句的三种写法
- insert into 语句的三种写法
- 数据查询语句的拼接
- 解析SQL语句中INSERT语句的另一种写法
- 把某个表的数据导出成insert语句(数据导出 insert语句)
- 用SQL语句拼接数据库表中一列的数据
- oracle拼接insert语句
- oracle中将查出来的数据转化为insert into语句
- 根据表中数据生成insert语句的存储过程
- 根据表中数据生成insert语句的存储过程
- 根据表中数据生成insert语句的存储过程
- 根据表中数据生成insert语句的存储过程
- 获取数据库表中数据的insert语句
- fft
- 数值积分-自适应辛普森法
- Android中设置半个屏幕大小且居中的按钮布局 (layout_weight属性)
- grails2.3.X无法debug
- 【3D-Hoops】球面
- 查表的数据来拼接insert语句的写法2
- 编外话12
- shell的一些-f -b -c的解释
- 高效程序员的45个习惯 --敏捷开发修炼之道
- [水]约瑟夫环 ZOJ1088 POJ3517
- Android系统的目录结构
- 单链表反转
- shell中的界定
- leetcode LRU Cache