I don’t know anything about stored procs. But desperately need one to run an update sql when a boolean column in a table changes value from false to true. If someone could provide one it will be greatly appreciated.
Thanks in advance
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.
Here’s a test table
This is a sample trigger function.
OLDandNEWare pre-declared variables that means the updated row.Then, create trigger.
Stored Procedures are not so difficult. You can learn it easily in PostgreSQL official documents : http://www.postgresql.org/docs/9.1/interactive/index.html
see