I am having trouble with the syntax on this;
INSERT INTO t1.mgroup VALUES(11) SELECT FROM members AS t1, moredata AS t2 WHERE t1.id = t2.member_id AND t1.mgroup = 3 AND t2.field_1 ="N"
The objective is that in table Members, I want to insert the number 11 where the member id =3 and the extra data table = "N". The insert and select syntax is challenging to me.
Thanks
INSERT INTO t1.mgroup VALUES(11) SELECT FROM members AS t1, moredata AS t2 WHERE t1.id = t2.member_id AND t1.mgroup = 3 AND t2.field_1 ="N"
The objective is that in table Members, I want to insert the number 11 where the member id =3 and the extra data table = "N". The insert and select syntax is challenging to me.
Thanks