home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!news.oc.com!spssig.spss.com!uchinews!gsbacd.uchicago.edu!cs_mj
- From: cs_mj@gsbacd.uchicago.edu (Mark Jaeger)
- Subject: <None>
- Message-ID: <1992Sep1.151258.1@gsbacd.uchicago.edu>
- Lines: 32
- Sender: news@uchinews.uchicago.edu (News System)
- Organization:
- References: <1992Aug31.180720.7712@desktalk.desktalk.com>
- Date: Tue, 1 Sep 1992 21:12:58 GMT
-
- In article <1992Aug31.180720.7712@desktalk.desktalk.com>, eric@desktalk.com
- (Eric Lieber) writes:
- > I want to insert a datetime value into a table. The format I have to use is:
- > "yyyy-mm-dd hh24:mi:ss"
- > where hh24 is the 24 clock , (13:00 = 1:00 pm)
- >
- > After reading the manual, I assume that the II_DATE_FORMAT varable must
- > be to set to 'SWEDEN/FINLAND'.
- >
- > The question is will Ingres accept the following:
- > insert into test_table (date_col)
- > values ( "1992-12-31 13:45:59");
-
- Yes, it works. You can use either of these (for VMS):
-
- $ define ii_date_format "SWEDEN"
- $ define ii_date_format "FINLAND"
-
- For Unix csh:
-
- % setenv II_DATE_FORMAT SWEDEN
- % setenv II_DATE_FORMAT FINLAND
-
- Note that you must use _single_ quotes (') in your insert statement.
- Double quotes (") are not allowed.
-
- --Mark Jaeger internet: cs_mj@gsbvax.uchicago.edu
- Graduate School of Business yellnet: (312) 702-0328
- University of Chicago faxnet: (312) 702-0233
- Disclaimer: My opinions are my own and not those of my employer.
- Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
-
-