大家好,基本上我有一个查询选择flagId = 6的所有clientId
这是:
SELECT clientId from ClientsFlags WHERE flagId = 6;
现在我想从这个查询中获取结果,并为在 select 语句中获得的每个结果创建一个新记录
INSERT INTO clientFlags clientId, flagId VALUES('The client ID's that were obtained in the select query', 42);
结合这些陈述的最佳方式是什么?