大哥你的这句SQL我可真是没看明白啊!
:ywid是什么意思?
values后面(:ywid,:tplj,:cphm,:hpzl,:tpzl),(:ywid,:tplj,:cphm,:hpzl,:tpzl1)
又是什么?
是我见识少?还是真雷人啊?
给你一个Model
insert into xx_test
(
id,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5
)
values
(
/* id */,
/* attribute1 */,
/* attribute2 */,
/* attribute3 */,
/* attribute4 */,
/* attribute5 */
)
注意插入值如果是变量的话记得加‘’拼一个字符串。
1。使用union all
select * from @t
union all
select * from @s
2.使用触发器!~