It depends on the purpose for which you are using SQLite.  It sure makes
it ugly trying to convert an existing application TO SQLite.
Oracle-like TO_DATE and TO_CHAR functions would be a big help.


-----Original Message-----
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Igor Tandetnik
Sent: Wednesday, January 21, 2009 10:57 AM
To: sqlite-users@sqlite.org
Subject: Re: [sqlite] Date datatype

Hoover, Jeffrey <jhoo...@jcvi.org> wrote:
> You are comparing the values as strings.
>
> Instead, format your dates as YYYY-MM-DD and use the date function to
> convert strings to dates for comparison:

If you use YYYY-MM-DD format consistently, then simple string comparison

just happens to give the same results as date comparison.

Igor Tandetnik



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to