I wanna to stop these query which will update more than 10k row at once.
just like mysql workbench, if i update a table without where condition, it will give me a warning and stop execute the sql.
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.
there is no built-in function for this
before you sending the update statement,
you will need to execute the filter condition (ie .
SELECT COUNT(*) FROM TBL WHERE...in order to get the count of matched rows
from there, you can determine whether it should prompt a warning or not