Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting Datatype

262147May 2 2002
Have a Foxpro frontend, insert into an Oracle table. Datatypes different: Foxpro = logical,
ORACLE = numeric. Wrote trigger to do datatype conversion:

CREATE OR REPLACE TRIGGER trig1 BEFORE INSERT ON table1
FOR EACH ROW
BEGIN
SELECT TO_NUMBER(col1) INTO :new.col1 FROM dual;
END;

For some reason I am getting error message that identifier coll1 must be declared. Why can't it see this column? Can anyone tell me?
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 1 2002
Added on May 2 2002
5 comments
341 views