home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / ref / postquel / replace < prev    next >
Encoding:
Text File  |  1992-08-27  |  828 b   |  35 lines

  1. .\" XXX standard disclaimer belongs here....
  2. .\" $Header: /private/postgres/ref/postquel/RCS/replace,v 1.4 1992/07/14 05:54:17 ptong Exp $
  3. .SP REPLACE COMMANDS 6/14/90
  4. .XA 2 Replace
  5. .uh NAME
  6. .lp
  7. replace \*- replace values of attributes in a class
  8. .uh SYNOPSIS
  9. .lp
  10. .(l
  11. \fBreplace\fR instance_variable \fB(\fR att_name1 \fB=\fR expression1 {\fB,\fR att_name-i \fB=\fR expression-i } \fB)\fR
  12.     [ \fBfrom\fR from_list ]
  13.     [ \fBwhere\fR qual ]
  14. .)l
  15. .uh DESCRIPTION
  16. .lp
  17. .b Replace
  18. changes the values of
  19. the attributes specified in the 
  20. target_list 
  21. for all instances which
  22. satisfy the qualification,
  23. .i qual .
  24. Only attributes which are to be modified need appear in the
  25. target_list.
  26. .uh EXAMPLE
  27. .lp
  28. .nf
  29. .ft C
  30. /* Give all employees who work for Smith a 10% raise */
  31.  
  32. replace emp(sal = 1.1 * emp.sal)
  33.     where emp.mgr = "Smith"
  34. .ft
  35.