我有以下查询
select substring(listDate from '............$') as v_end_date,
substring(listDate from '^...............') as v_start_date
现在listDate值可以像
select substring('06 Jan 2014 to 12 Jan 2014,
13 Jan 2014 to 19 Jan 2014,
20 Jan 2014 to 26 Jan 2014
' from '............$') as v_end_date,
substring('06 Jan 2014 to 12 Jan 2014,
13 Jan 2014 to 19 Jan 2014,
20 Jan 2014 to 26 Jan 2014
' from '^............') as v_start_date
以上查询结果
V_END_DATE V_START_DATE
26 Jan 2014 06 Jan 2014
现在我需要v_end_date
和v_start_date
格式,如yyyy-mm-dd
等
Mon 06 Jan 2014
。