home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / oracle / 2155 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.2 KB

  1. Path: sparky!uunet!ogicse!decwrl!csus.edu!netcom.com!sjs
  2. From: sjs@netcom.com (Stephen Schow)
  3. Newsgroups: comp.databases.oracle
  4. Subject: HELP with complex view?
  5. Message-ID: <1992Nov9.232731.3618@netcom.com>
  6. Date: 9 Nov 92 23:27:31 GMT
  7. Article-I.D.: netcom.1992Nov9.232731.3618
  8. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  9. Lines: 20
  10.  
  11. I am trying to do something in a view that I can't figure out.
  12.  
  13. I have a table with a column of type CHAR(25) and need it to appear in the
  14. view as CHAR(255).  It would normally be easy to just use RPAD() to pad
  15. the column out to 255 characters, but I don't want any trailing blanks
  16. in the data retrieved from the view.
  17.  
  18. I thought of using this:
  19.  
  20. RPAD(column,255,NULL) to pad it out with the NULL value.  It did indeed 
  21. return a column with a length of 255, but ALL of the data was gone.
  22.  
  23. HELP   HELP    HELP
  24. -- 
  25. ------------------------------------------------------------------
  26. Steve Schow    | But you don't have to use the claw, if you
  27. sjs@netcom.com | pick the pear with the big paw paw......
  28.                | Have I given you a clue......?
  29.                |                       - Baloo the Bear
  30. ------------------------------------------------------------------
  31.