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

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!inews.Intel.COM!mipos2!kortikar
  2. From: kortikar@mipos2.intel.com (Aniruddha Kortikar)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: how to insert datetime in PRO*C
  5. Message-ID: <By6yxD.81s@inews.Intel.COM>
  6. Date: 23 Nov 92 23:07:58 GMT
  7. References: <Bxvztx.63s@inews.Intel.COM> <2869@uswnvg.uswnvg.com>
  8. Sender: news@inews.Intel.COM (USENET News System)
  9. Organization: Intel Corporation, Santa Clara, CA USA
  10. Lines: 11
  11. Nntp-Posting-Host: mipos2
  12.  
  13. One has to use 
  14. insert into .... values :v1,:v2,todate(:v3,'mm/dd/yy hh24:mi') while preparing
  15. the sql statement. and NOT while executing the statement as in 
  16.  
  17. exec sql execute :stmt using ....,to_date(....)
  18.  
  19. Aniruddha Kortikar(kortikar@mipos2.intel.com)
  20. -------------------------------------------------------------------------------
  21. E-mail     : kortikar@mipos2.intel.com | A billion here, a billion there ...
  22. Phone(W): 408 765 5515              | pretty soon it adds upto real money.
  23. -------------------------------------------------------------------------------
  24.