Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by theresep

  1. theresep

    Insert Into Where (syntax help)

    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.
  2. theresep

    Insert Into Where (syntax help)

    my select statement works, but my conditional insert isn't working. I must be approaching this wrong.. thanks.
  3. theresep

    Insert Into Where (syntax help)

    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
  4. theresep

    Insert Into Where (syntax help)

    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...

Part and Inventory Search

Back
Top