Questionaries.org
Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
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)
mysql
sql
website
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
How do you get the number of rows affected by query in SQL mysql?
asked
1 year
ago
by
DBA-boss
(
120,990
points)
rows
affected
query
sql
mysql
5
like
0
dislike
1
answer
How can you see all indexes defined for a table?
asked
1 year
ago
by
eagles11
(
179,830
points)
sql
mysql
website
3
like
0
dislike
0
answers
What do you understand by Synchronization?
asked
1 year
ago
by
DBA-boss
(
120,990
points)
synchronization
database
sql
mysql
8
like
0
dislike
1
answer
Actually what do you mean by "Database" is..?
asked
1 year
ago
by
lotus$
(
42,160
points)
database
mysql
sql
4
like
0
dislike
1
answer
How do you concatenate strings in MySQL?
asked
1 year
ago
by
eagles11
(
179,830
points)
mysql
sql