我有SQL查询:
INSERT INTO users (name, username, email, params, password )
SELECT CONCAT (`IMIE_WL`,' ', `NAZ_WL`),
CONCAT (a.wid,'-',LPAD(a.cid, 4, '0') ,'-',LPAD(a.LP_H, 2, '0')),
b.AK_NAZWA,
CONCAT('{"language":"","helpsite":""}'),
CONCAT('SomePasswordSalted')
FROM source_data AS b
INNER JOIN loginy AS a ON a.ID_LOK = b.ID_LOK;
我需要在此查询中添加另一个插件,如下所示:
INSERT INTO conector (id,ID_LOK) VALUES (LAST_INSERT_ID(),ID_LOK);
一个查询的任何想法?