hi
i need to insert values in a temporary teble which i dynamically create the columns like tbl_01, tbl_02....
for eg.,
execute immediate 'INSERT INTO TBL_MONTH_LEAVE_DETAIL(TBL_ADM_NO,TBL_MONTH,'TBL_' ||TO_CHAR(SYSDATE,'DD'))'
||'VALUES (TRSTBD_ADM_NO,TO_CHAR(SYSDATE,'MMYY'),1)';
HERE THE COLUMNS ARE TBL_ADM_NO,TBL_MONTH,TBL_01,.....TBL_30
ACCORDING TO THE DAY THE COLUMN WILL BE SELECTED AND A VALUE 1 WILL BE INSERTED.