I want to use different queries such as update, select and etc. Is it possible to combine them in one query? And how?
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.
If you need to get the “result” of an UPDATE, DELETE or INSERT query in PostgreSQL, you can use the
returningclause:would return all rows that were delete by that statement. Likewise with UPDATE:
would return all updated rows with the new values.
I don’t think something like this is possible in MySQL though.