请帮我纠正sql语句:
CREATE TRIGGER transaction_insert
AFTER INSERT ON transaction
FOR EACH ROW
WHEN (NEW.tr_type = 55)
EXECUTE PROCEDURE pg_notify('check_close', to_char(NEW.n_transaction, 999999));
添加行时我需要收到通知tr_type=55
。
tr_type
是int
。n_transaction 是int
.
PostgreSQL 8.3.4
请帮忙!