Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

When would you use ORDER BY in DELETE statement?

6 like 0 dislike
Hello
When would you use ORDER BY in DELETE statement?
please reply me. i am waiting for your reply.
Thanx
asked 1 year ago by DBA-boss (120,990 points)

1 Answer

1 like 0 dislike
 
Best answer
When you’re not deleting by row ID. Such as in DELETE FROM techinterviews_com_questions ORDER BY timestamp LIMIT 1. This will delete the most recently posted question in the table techinterviews_com_questions.
answered 1 year ago by eagles11 (179,830 points)

Related questions

6 like 0 dislike
1 answer
5 like 0 dislike
1 answer
3 like 0 dislike
0 answers
8 like 0 dislike
1 answer
4 like 0 dislike
1 answer
asked 1 year ago by eagles11 (179,830 points)