I have a stored procedure that selects and inserts columns into a table. I have one column that I need to change the dataype from CHAR to_num before it inserts in the table because the table column is a number.
Rather than creating a temp table I thought I could use a trigger to convert it before insert TO_NUM(order_number).
Is this possible and how would I do this? Do I create a variable in the trigger, convert, then insert that variable into the table? I could not find any sample code for this situation.
Thanks for the assistance.