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

  1. /*
  2.  * a more complex complex object -- returns a set
  3.  */
  4.  
  5. define function residents ( language = "postquel",
  6.                 returntype = setof person )
  7.     arg is (city)
  8.     as  "retrieve (p.all) from p in person*
  9.      where p.location ---> $1.location"
  10. \g
  11.