Jan 17, 2001 #1 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.
What is the correct sql syntax for retreiving a date column from a table in character format ? Any assistance will be greatly appreciated.
Jan 18, 2001 #2 bteq Programmer Jan 4, 2001 4 US This might help select date_column (FORMAT 'yyyymmdd') (char(08)) from table_name Upvote 0 Downvote
Mar 27, 2001 #3 titio Programmer Mar 27, 2001 2 FR 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 ) ???????????? Upvote 0 Downvote
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 ) ????????????