View previous topic :: View next topic
|
Author |
Message |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 121 Location: India
|
|
|
|
I need syntax for Date, where Date is in format 'YYYY-mm-dd'
and i just know that the year would be starting from 19..
I want to find out the records where date has year as 19...
Thanks. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Select * from table where the_date >= '1900-01-01'; |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I want to find out the records where date has year as 19... |
Also if only the 19s are to be selected:
Select * from table where the_date >= '1900-01-01' and the_date < '2000-01-01'; |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
?? what is the datatype for the column containing the date? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hopefully, char(10). . . . |
|
Back to top |
|
|
|