INSERT INTO a2.cat(id,img)SELECT category_id,category_id FROM topshop.category;
我需要在category_-id
的img列中插入加号值INSERT INTO a2.cat (id, 'c'+img+'.jpg') SELECT category_id, category_id FROM topshop.category;
答案 0 :(得分:1)
这里是:
INSERT INTO a2.cat
(id, img)
SELECT
category_id, CONCAT('c',category_id,'.jpg')
FROM topshop.category;