Jan 17, 2001 #1 PAULBOS Programmer Joined Jan 17, 2001 Messages 1 Location 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 Joined Jan 4, 2001 Messages 4 Location US This might help select date_column (FORMAT 'yyyymmdd') (char(08)) from table_name Upvote 0 Downvote
Mar 27, 2001 #3 titio Programmer Joined Mar 27, 2001 Messages 2 Location 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 ) ????????????