Hi Oracle experts,
I have an Oracle database (10g) with a table "WWW_PLUS" holding a field "ListName" defined as Varchar. It's used to store the number of minutes (don't ask me why) from an ASP page, but we weren't successfull in limiting the page inputfield to numbers only. (Some copy/paste actions add nonnumeric characters that can't be detected). Now we're running into trouble when performing calculations on the field.
Instead of manipulating the field from the page in ASP, I think defining a trigger could make sure that the Varchar field only gets numbers and nothing else.
As far as I know we need an INSERT and UPDATE trigger to change the string into a "pure numeric" string and store it in the tablefield. Here my knowledge stops. The samples on the web didn't gave me a clear view how to perform this task.
Can you help ?
Nic;o)
I have an Oracle database (10g) with a table "WWW_PLUS" holding a field "ListName" defined as Varchar. It's used to store the number of minutes (don't ask me why) from an ASP page, but we weren't successfull in limiting the page inputfield to numbers only. (Some copy/paste actions add nonnumeric characters that can't be detected). Now we're running into trouble when performing calculations on the field.
Instead of manipulating the field from the page in ASP, I think defining a trigger could make sure that the Varchar field only gets numbers and nothing else.
As far as I know we need an INSERT and UPDATE trigger to change the string into a "pure numeric" string and store it in the tablefield. Here my knowledge stops. The samples on the web didn't gave me a clear view how to perform this task.
Can you help ?
Nic;o)
Comment