home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre1.z / postgre1 / demo / script-16 < prev    next >
Encoding:
Text File  |  1992-08-27  |  146 b   |  6 lines

  1. define rule example_2 is
  2. on replace to emp.salary where current.name = "bill"
  3. do replace emp (salary = 2 * new.salary) where emp.name = "sam"
  4.  
  5. \g
  6.