简体   繁体   中英

How can i cancel an SQL query 'update' in postgresql

please i need help, i want to cancel an SQL query in postgresql (update) after the execution how can i do that ?

this is my sql query:

UPDATE mail_activity2 SET activity_type_id =3 WHERE activity_type_id = 5 ;

Thanks in advance.

do you mean the condition will always be false? like below

UPDATE mail_activity2 SET activity_type_id =3 WHERE 1=2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM