I am going to try UPDATE, but where my confusion must be is that in the MySQL manual, there is a reference to INSERT SELECT WHERE; but there is no VALUE. So maybe I assumed I could use VALUE in the syntax.
Thanks for the tip. I'll also try REPLACE.
sorry, I am really trying this..
INSERT INTO t1.mgroup VALUES(11) SELECT t1.mgroup,t2.field_1 FROM members AS t1, moredata AS t2 WHERE t1.id = t2.member_id AND t1.mgroup = 3 AND t2.field_1 ="N
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.