Make your own free website on Tripod.com

InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: to_date function


Frank

I'm not exactly sure what you mean by this. Date/time handling is described
in

http://instantdb.enhydra.org/software/documentation/types.html

If you need more help then get back to me.

Regards

Peter Hearty
Lutris Technologies UK Ltd.
-----Original Message-----
From: Frank Mirche <frank.mirche@netcologne.de>
To: instantDB@enhydra.org <instantDB@enhydra.org>
Date: 29 July 2000 06:45
Subject: AW: InstantDB: to_date function


Hello Peter,

disregard my previous Email.

if you would just explane how to handle times.

best regards Frank

> -----Ursprüngliche Nachricht-----
> Von: owner-instantDB@enhydra.org [mailto:owner-instantDB@enhydra.org]Im
> Auftrag von Peter Hearty
> Gesendet am: Freitag, 15. September 2000 16:21
> An: instantDB@enhydra.org
> Betreff: Re: InstantDB: to_date function
>
> Gerald
>
> In InstantDB, insert values are not general purpose expressions.
> Selects are
> allowed in expression however, so you could do something like:
>
> insert into titi select to_date('01-01-2000','dd-mm-yyyy') from anytable
> where id=1
>
> Regards
>
> Peter Hearty
> Lutris Technologies UK Ltd.
> -----Original Message-----
> From: Gérald Quintana <quintana@lyon.objectif.fr>
> To: instantdb@enhydra.org <instantdb@enhydra.org>
> Date: 27 July 2000 16:12
> Subject: InstantDB: to_date function
>
>
> Hi,
>
> I've some troubles with the to_date function. Here is a small sample code
> for commsql
> Enter SQL string, or . to exit
> create table titi(d date)
> main create table titi(d date)
> Enter SQL string, or . to exit
> insert into titi values('1999-12-31 59:59:999')
> main insert into titi values('1999-12-31 59:59:999')
> Enter SQL string, or . to exit
> insert into titi values(to_date('01-01-2000','dd-mm-yyyy'))
> main insert into titi values(to_date('01-01-2000','dd-mm-yyyy'))
> main insert into titi values(to_date('01-01-2000','dd-mm-yyyy'))
> Don't understand SQL after: "insert"
> Expected: "}" found: "("
> java.sql.SQLException: insert into titi
> values(to_date('01-01-2000','dd-mm-yyyy'
> ))
> Don't understand SQL after: "insert"
> Expected: "}" found: "("
>         at db.SQLProg.execute(SQLProg.java:214)
>         at jdbc.idbStatement.execute(idbStatement.java, Compiled Code)
>         at commsql.main(commsql.java, Compiled Code)
>
> I create a simple table called titi with a date column. When I
> insert a date
> using JDBC format (seen in this mailing list), it works. When I
> use to_date
> function, it doesn't...
>
> The same SQL script works well on an Oracle database.
>
> I'm using InstantDB v3.13
>
> Thanks for your help
> Gerald.
> ________________________________
> Gérald QUINTANA
>   gerald.quintana@ecl2000.ec-lyon.fr
>   http://www.multimania.com/gquintana
>
>
> ------------------------------------------------------------------
> -----------
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
>

----------------------------------------------------------------------------
-
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.



-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.