I have a field within a DB table with which leading fields need to be pre-fixed with 000000. i.e.
with
If I want to insert 19 into field 1, it should become 0000000019
If I want to update field 1 to become 9878, it should be come 0000009878.
I heard in SQL Server, there is an option to define the field type to do this. Is this the case for Oracle or not?
If not, would Trigger be the next most efficient/easiest approach?
with
Code:
field1 char(10)
If I want to insert 19 into field 1, it should become 0000000019
If I want to update field 1 to become 9878, it should be come 0000009878.
I heard in SQL Server, there is an option to define the field type to do this. Is this the case for Oracle or not?
If not, would Trigger be the next most efficient/easiest approach?