Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date format

Status
Not open for further replies.

JJJ777

Programmer
Jun 5, 2002
33
MY
hi all...

is there any possibility in SQL command to select just the year from date format in database.
As we all know the format is 2002-02-24 in the database.

therefore is that any possibilitty to take for example just the year by SQL command instead of we use coding which is normal method.



tq in advance..
 
[tt]SELECT EXTRACT(YEAR FROM column) FROM table[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top