Neha Choudhary
Neha Choudhary

Reputation: 4870

How to restrict a row from getting deleted from a table through a query?

Is that possible? I know how to do it with a program but is there any query to do it without the support of primary or foreign key?

Upvotes: 1

Views: 130

Answers (1)

Dan
Dan

Reputation: 2093

In MySQL I don't think it is possible. If the MySQL user running query has the DELETE privilege, then they will be able to delete any row.

Upvotes: 3

Related Questions