| From: | "Erick Gonzales" <egcnews(at)hotmail(dot)com> |
|---|---|
| To: | pgsql-questions(at)postgresql(dot)org |
| Subject: | RE: query involving dates |
| Date: | 1999-09-06 04:56:29 |
| Message-ID: | #6YTgvB##GA.263@cppssbbsa03 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
And.... use the "convert" function, for example:
convert(char(10),datevar,105) , u will have dd-mm-yyyy ... or use the format
u want to..
Bob Pfeiff <bobp(at)spectrumtech(dot)com> escribi en el mensaje de noticias
O7IFj#$9#GA(dot)270(at)cppssbbsa04(dot)(dot)(dot)
> Dates must be enclosed in single quotes in SQL Server. Use date functions
> to build queries like the one you describe. Here is an example that works
> in the pubs sample database:
>
> select
> ord_date
> from
> sales
> where
> ord_date between '9/13/94' and dateadd(dd, 7, '9/13/94')
>
> --
> Bob Pfeiff
> MCDBA, MCSD, MCSE, MCT, SQL Server MVP
> Practice Leader, Data Management
> CIBER, Washington, DC
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nicolas Huillard | 1999-09-06 09:57:12 | |
| Previous Message | Bob Pfeiff | 1999-09-06 00:27:04 | Re: query involving dates |