今天需要插入某条数据,但是该内容来至某条select语句,经过查询,得出以下结论

INSERT INTO `role_directory_rel`(`directoryId`, `roleId`) select id,1 from `directory` where `consoleUrl`='toCreateAwardPool.action';


注意前面要插入的数据需要和后面查询的参数个数对应