wysiwygGER01
Programmer
Hi,
I'm trying to get this SQL statement to work:
I think the error shows up because the first value to insert('108') is a static value. The second value to insert is the result of a select query.
I want to use '108' for all rows which are returned by the sub-select.
Is this something that can be done?
I'm trying to get this SQL statement to work:
Code:
INSERT INTO lnkroletasks(taskid, roleid)VALUES('108', (SELECT id FROM tblroles WHERE role = 'Customer Service Manager' OR role='Engineering Manager'))
I think the error shows up because the first value to insert('108') is a static value. The second value to insert is the result of a select query.
I want to use '108' for all rows which are returned by the sub-select.
Is this something that can be done?