-1
我使用的是Oracle數據庫,我buidling查詢和我不能確定如何做我設置爲「創造」領域的一個比較ORACLE SQL查詢
SELECT C.IS_AW_TITLE, A.PORTAL_OBJNAME, C.IS_AW_ACTIVE_FLG,
(TO_CHAR(CAST((C.CREATEDTTM) AS TIMESTAMP),'YYYY-MM-DD-HH24.MI.SS.FF')) AS
CREATED,.....
FROM ..., (sysadm.PS_IS_AW_PG_DEFN C LEFT OUTER JOIN sysadm.PS_IS_AW_SECURITY D ON
C.IS_AW_GRP_ID = D.IS_AW_GRP_ID),...
WHERE (C.IS_AW_CREF_OBJ = A.PORTAL_OBJNAME
AND C.IS_AW_GRP_ID = E.IS_AW_GRP_ID...
的「創造」領域產生的結果相似,這個例子:2011-09-26-11.22.31.000000
我將如何將它包含在查詢中來說出'AND Created = to_timestamp(.....,2011-09-26-11.22.31.000000) ?
爲什麼你把這些弄到這些奇怪的小塊? – Zane
c.createdtm的數據類型是什麼? –