![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all Apologies for what appears to be a repeat of previous postings but I can't seem to get this to work. I have a date column containing a 29 digit date - 2003-12-05-12.00.00.000000000 I want to use a single SQL select to retrieve this column in the format 2003-12-05. I have tried using SUBSTRING to do this but seem to always get NULL returned. Help much appreciated!!! Thanks Gary |
#3
| |||
| |||
|
|
Hi all Apologies for what appears to be a repeat of previous postings but I can't seem to get this to work. I have a date column containing a 29 digit date - 2003-12-05-12.00.00.000000000 I want to use a single SQL select to retrieve this column in the format 2003-12-05. If you are in ASE 12.5.1 |
|
_ \___ _ _ ___// / -_) ' \/ -_) _|_\___|_||_\___| |
#4
| |||
| |||
|
|
In article <4e6f1307.0312041945.63a00f66 (AT) posting (DOT) google.com>, Gary Johnson wrote: Hi all Apologies for what appears to be a repeat of previous postings but I can't seem to get this to work. I have a date column containing a 29 digit date - 2003-12-05-12.00.00.000000000 I want to use a single SQL select to retrieve this column in the format 2003-12-05. If you are in ASE 12.5.1 select str_replace(convert(varchar(12),ur_column,111),'/','-') from ur_table |
![]() |
| Thread Tools | |
| Display Modes | |
| |