Is it possible to select and delete at the same time?
eg: in one command or does this have to be run as 2 separate commands?
What is the most optimal way to read rows from a table (using WHERE) and then remove the rows that were read?
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.
Yes it is possible. You could run both commands in a transaction which will commit them as one atomic unit.