有没有办法取消查询?我的查询如下所示:
SELECT C18_NLE00102.DETAIL
,C18_NLE00102.LIB_STATUS
,CLIENT_NLE00103.SIZO_CAMPAIGN_ID__C
,DATEPART( week,C18_NLE00102.DATE) as Week
,DATEPART( year,C18_NLE00102.DATE) as Year
FROM
C18_NLE001 C18_NLE00102 INNER JOIN CLIENT_NLE001 CLIENT_NLE00103
ON C18_NLE00102.INDICE = CLIENT_NLE00103.INDICE
我需要一个像这样的输出:
Array (
[0] => SELECT C18_NLE00102.DETAIL
[1] => C18_NLE00102.LIB_STATUS
[2] => CLIENT_NLE00103.SIZO_CAMPAIGN_ID__C
[3] => DATEPART(week,C18_NLE00102.DATE) as Week
[4] => DATEPART( year,C18_NLE00102.DATE) as Year
[5] => FROM C18_NLE001 C18_NLE00102 INNER JOIN CLIENT_NLE001 CLIENT_NLE00103 ON C18_NLE00102.INDICE = CLIENT_NLE00103.INDICE
)
我的输出现在是:
Array (
[0] => SELECT C18_NLE00102.DETAIL
[1] => C18_NLE00102.LIB_STATUS
[2] => CLIENT_NLE00103.SIZO_CAMPAIGN_ID__C
[3] => DATEPART( week
[4] => C18_NLE00102.DATE) as Week
[5] => DATEPART( year
[6] => C18_NLE00102.DATE) as Year FROM C18_NLE001 C18_NLE00102 INNER JOIN CLIENT_NLE001 CLIENT_NLE00103 ON C18_NLE00102.INDICE = CLIENT_NLE00103.INDICE
)
我在用着:
$more_dwarf_array = split(', ?',$QuerySaved );
print_r($more_dwarf_array);
问题是 DATEPART。