MySQL Forums
Forum List  »  Newbie

Re: How to create a complex insert query?
Posted by: Rick James
Date: April 23, 2009 09:09PM

How about simplifying it while you are at it:
insert into gebruiker_has_rol
   (Gebruiker_ID, Vriend_ID, Rol_ID)
   SELECT 2, 4, ID
      FROM rol
      WHERE Naam = 'OWNER';

Options: ReplyQuote


Subject
Written By
Posted
Re: How to create a complex insert query?
April 23, 2009 09:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.