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!

Trigger for changing decimal symbol (comma to point)

421997May 26 2004 — edited Mar 19 2008
Hi,

I have to insert spatial data into tables, but because the decimal symbol of te coordinates is a ',' he wont insert the data.
Now I wrote a trigger for it, but it doesn't work. Does anybody know a solution?

Here is the trigger I wrote (mn_00 is the name of the table en geom is the name of the column)

create or replace trigger tr_chkkomma
before insert or update on mn_00
for each row
BEGIN
IF position('.' in :new.geom)
THEN
replace(:new.geom, '.', ',')
END IF;
END;


Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2004
Added on May 26 2004
12 comments
1,323 views