Dear all,
I have gotten away from Oracle for too long that it almost all I know have left me.
I got back to an oracle this past Thursday with an Oracle project.
The business rule species that any field name that doesn't have a value should be zero-filled.
There are a total of 10 tables and slightly over 100 field names. Of these field names, 16 are optional fieldnames. The rest are required fieldnames.
First, the most logical thing to do, I think, would have been to create the tables with default values like:
CREATE Table T1
(
charcol char default '0000',
intcol integer default 0000
)
This way, if any fieldname is left blank, the default value of that fieldname becomes the value.
This, I was told, didn't happen.
The next thing, I am thinking would be to write a script that assign a value of 000 or '000' depending on the data type.
My problem is that I have gotten away from Oracle for almost 5 years that I don't know where to begin.
Can someone, please present any helpful ideas.
Thank you so very much
I have gotten away from Oracle for too long that it almost all I know have left me.
I got back to an oracle this past Thursday with an Oracle project.
The business rule species that any field name that doesn't have a value should be zero-filled.
There are a total of 10 tables and slightly over 100 field names. Of these field names, 16 are optional fieldnames. The rest are required fieldnames.
First, the most logical thing to do, I think, would have been to create the tables with default values like:
CREATE Table T1
(
charcol char default '0000',
intcol integer default 0000
)
This way, if any fieldname is left blank, the default value of that fieldname becomes the value.
This, I was told, didn't happen.
The next thing, I am thinking would be to write a script that assign a value of 000 or '000' depending on the data type.
My problem is that I have gotten away from Oracle for almost 5 years that I don't know where to begin.
Can someone, please present any helpful ideas.
Thank you so very much