我在xml中写的这个sql语句报错了?
INSERTINTOc_order(product_id,id,count,money,image)SELECTT1.product_id,T1.id,T1.count,...
INSERT INTO c_order
(product_id,id,count,money,image)
SELECT
T1.product_id,T1.id,T1.count,T1.money,T1.picture
FROM(
SELECT * FROM cart WHERE cart_id IN
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
)T1 展开
(product_id,id,count,money,image)
SELECT
T1.product_id,T1.id,T1.count,T1.money,T1.picture
FROM(
SELECT * FROM cart WHERE cart_id IN
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
)T1 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |