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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RETREIVING DATE DATATYPES

Status
Not open for further replies.

PAULBOS

Programmer
Jan 17, 2001
1
US
What is the correct sql syntax for retreiving a date column from a table in character format ? Any assistance will be greatly appreciated.
 
This might help

select date_column (FORMAT 'yyyymmdd') (char(08))
from table_name

 

i hava another question :

What is the correct sql syntax for retreiving a character month column like 'YYYYMM' from a date ?

i try :
SUBSTRING ( EXTRACT YEAR from date || EXTRACT MONTH from date 1 for 6 ) ????????????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top