Hi ...I am trying to compare column changes in a table...The logic is :new.column1 <> :old.column1 and so on...since i have many columns in teh table i decided to use loop
Loop
select column_name into l_col from user_tab_columns where table_name='X' and column_id=l_cnt1;
--where l_cnt1 keeps increasing in the loop
IF :new.l_col <> :old.l_col
......
But it doesnt get compiled with error -"
- PLS-00049: bad bind variable 'NEW.L_COL' "
Please suggest a way out.Thanks in advance