INSERT INTO registration( name, email, username) values('eswar',(select email from registration),'manikandan')
INSERT INTO registration( name, email, username) values(‘eswar’,(select email from registration),’manikandan’)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The correct syntax is like this:
This inserts n lines (the number of lines in the registration table).
To filter this you add a constraint to the select statement.
You add the constant values to the SELECT STATEMENT not the other way around.