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

  1. .\" XXX standard disclaimer belongs here....
  2. .\" $Header: /private/postgres/ref/postquel/RCS/addattr,v 1.6 1992/07/14 05:54:17 ptong Exp $
  3. .SP ADDATTR COMMANDS 6/14/90
  4. .XA 2 "Addattr"
  5. .uh NAME
  6. .lp
  7. addattr \*- add attributes to a class
  8. .uh SYNOPSIS
  9. .lp
  10. .(l
  11. \fBaddattr\fR \fB(\fR attname1 \fB=\fR type1 {\fB,\fR attname-i \fB=\fR type-i} \fB)\fR
  12.     \fBto\fR classname{*}
  13. .)l
  14. .uh DESCRIPTION
  15. .lp
  16. The
  17. .b addattr
  18. command
  19. causes new attributes to be added to an existing class,
  20. .i classname .
  21. The new attributes and their types are specified
  22. in the same style and with the the same restrictions as in
  23. \fBcreate\fR(commands).
  24. .lp
  25. The new attributes will not be added to
  26. any classes which inherit attributes from
  27. .i classname ,
  28. unless the
  29. .q *
  30. is present.
  31. .lp
  32. The initial value of each added attribute for all instances is
  33. .q "null."
  34. .lp
  35. For efficiency reasons,
  36. default values for added attributes
  37. are not placed in existing instances of a class.
  38. If default values are desired,
  39. a subsequent
  40. \fBreplace\fR(commands) query should be run.
  41. .uh EXAMPLE
  42. .lp
  43. .ft C
  44. /* add the date of hire to the emp class */
  45.  
  46. addattr (hiredate = abstime) to emp
  47. .ft
  48. .uh "SEE ALSO"
  49. .lp
  50. create(commands).
  51. .uh "BUGS"
  52. .lp
  53. "*" is not supported in Version \*(PV.
  54.