Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Need help on Index

$
0
0
Hi,

I am trying to create an index having dates on a column in a table.

Create index IDX_TABLE_A on PCS_TABLE_A
(
TO_DATE(to_char (sysdate,'yyyy/mm/dd HH24:MI:SS'), 'yyyy/mm/dd HH24:MI:SS') -
TO_DATE(TO_CHAR(COLUMN_A,'yyyy/mm/dd HH24:MI:SS'), 'yyyy/mm/dd HH24:MI:SS') , sysdate , COLUMN_A
);

It is not allowing sysdate to be part of the definition.

I need to use some pure function which is not dependent in session state.

P Lease advice

Cheers !
Subhotech :beer:

Viewing all articles
Browse latest Browse all 13329

Latest Images

Trending Articles



Latest Images