home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / oracle / 2264 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  897 b 

  1. Path: sparky!uunet!uswnvg!nv6.uswnvg.com!mmcgreg
  2. From: mmcgreg@uswnvg.com (Mark McGregor)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: how to insert datetime in PRO*C
  5. Message-ID: <2869@uswnvg.uswnvg.com>
  6. Date: 21 Nov 92 21:41:10 GMT
  7. References: <Bxvztx.63s@inews.Intel.COM>
  8. Sender: news@uswnvg.uswnvg.com
  9. Organization: U S WEST NewVector Group, Inc.
  10. Lines: 14
  11. X-Newsreader: Tin 1.1 PL5
  12.  
  13.  
  14. : exec sql execute s1 using :var1,:var2,to_date(....) does not work
  15.  
  16. Are you sure this does not work?  I use this construct regularly.  I
  17. Handle all dates in the format YYYYMMDDHH24MISS (mostly because the
  18. Oracle date format is functionally useless for anything) and so I
  19. have to use this sort of construct all the time.  However, I do not
  20. usually use the prepare and execute statement.
  21.  
  22. 1) Did you use  to_date( :v3, "mm/dd/yy hh24:mi" )?
  23.  
  24. 2) Did you print out the values to make sure they were correct?
  25.  
  26.  
  27.