home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / 6443 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!aero.org!desktalk.desktalk.com!jordan!eric
  3. From: eric@desktalk.com (Eric Lieber)
  4. Subject: Ingres - inserting date & time values
  5. Message-ID: <1992Aug28.203902.25709@desktalk.desktalk.com>
  6. Sender: usenet@desktalk.desktalk.com
  7. Nntp-Posting-Host: 134.70.18.150
  8. Reply-To: eric@desktalk.com
  9. Organization: Desktalk Systems Inc.
  10. Date: Fri, 28 Aug 1992 20:39:02 GMT
  11. Lines: 24
  12.  
  13. I am posting this because I do not have Ingres yet and therefore I cannot try itout myself.
  14.  
  15. I want to insert a datetime value into a table. The format I have to use is:
  16.     "yyyy-mm-dd hh24:mi:ss"
  17. where hh24 is the 24 clock , (13:00 = 1:00 pm)
  18.  
  19. After reading the manual, I assume that the  II_DATE_FORMAT varable must
  20.  be to set to  'SWEDEN/FINLAND'.
  21.  
  22.  The question is will Ingres  accept the following:
  23.  insert into test_table (date_col)
  24.            values (    "1992-12-31 13:45:59");
  25.  
  26. Thanx for any info.
  27.  
  28. ps. isn't it amazing that none of the 4 databases (sybase, oracle, informix and ingress) have the same datetime definitions when creating a table and  same format when inserting a value!!!!!! 
  29.  
  30. Eric Lieber
  31. DeskTalk Systems
  32. Torrance, CA
  33. eric@desktalk.com
  34. (310) 323 5998 ext. 124
  35.  
  36.  
  37.