insert into BIZ_WORKFLOW(BIZ_TYPE, BIZ_NO, OP_MAN, OP_TIME, STATUS)
values('S1,S1',
'' S10900010237 ',' S10900010238 '',
'罗珏',
sysdate,
'L04')
我用的是Oracle 数据库,想把' S10900010237 ',' S10900010238 '分别赋值给BIZ_NO 该怎么做
问题补充: strSql[1] = "insert into BIZ_WORKFLOW (BIZ_TYPE,BIZ_NO,OP_MAN,OP_TIME,STATUS) values "
+ "('" + Type.Text + "','" + lblGATEPASS_NO.Text.Trim() + "','" + CacheUser.C_Name + "',sysdate,'L04')";
lblGATEPASS_NO.Text.Trim() = 'S10900010237 ',' S10900010238 ';
insert 两次啊
insert into BIZ_WORKFLOW(BIZ_TYPE, BIZ_NO, OP_MAN, OP_TIME, STATUS)
select 'S1,S1',
'S10900010238',
'罗珏',
sysdate,
'L04'
union all
select 'S1,S1',
'S10900010237 ', '罗珏',
sysdate,
'L04')
可以先用Split把lblGATEPASS_NO.Text.Trim()用 ',' 分割
在做插入语句, 那么方法就多了