Parag Mehta, August 09, 2001 - 10:04 am UTC
Actually i am not highly Impressed by this Answere.
Keep up the good work
A reader, August 09, 2001 - 1:11 pm UTC
I read your site every business day. Often I learn something valuable. I especially like your demonstrative examples. BTW, Love your book.
Not quite powerful enough
Jonas, August 08, 2003 - 6:28 pm UTC
While your preprocessor example works, it doesn't elegantly handle associating named check constraints to your predefined type. If you change the type, it would probably break the constraint.
If I have a "name" column defined in 20 tables, I sure would love to make sure that they are all the same type (for example - varchar2(char 64)). While Object types can meet this need, they provide an extra level of indirection. It seems like this can become cumbersome if there are multiple object types within a single table.
Many E/R tools support derived types, which is a beautiful
thing. But the problem is one has to rely on this tool for all schema changes, which can be extremely limiting.
How would you go about solving this problem?
Do you consider object types a valid solution to standardize a type for a single column?
I could use grep compare types between like named columns, but god forbid someone chooses a non-standard naming convention for a given column.
Just looking for a robust solution.
Also, is there any way I can provide feedback to the product manager's that this is a desired feature (in my book anways)?
Thanks for all your help.
August 10, 2003 - 12:06 pm UTC
Only a tool can enforce these things, as "limiting" (that is part of their actual design goal, to limit) as they are.
Even if you had a "type" -- no one is forced to use that type correctly. Only a repository based tool that enforces strict control can do that.
Synonym/Alias for datatype
A reader, December 31, 2003 - 5:37 pm UTC
Hi Tom,
After reading this, am I right that there is not way (yet) in Oracle to create a synonym or alias for another datatype such as date?
What I want to achieve is to create a "datetime" type which is the same as "date".
<<Yes, I asked you earlier about how to write database compatible codes. So bad even the date and time datatypes are named differently in Oracle and SQL Server. Where is the ANSI standards... >>
December 31, 2003 - 5:50 pm UTC
there is not. no.
You can order for a fee the ANSI standards however
a) there is no body that certifies anyone to them anymore
b) there are lots of levels of compliance
c) we are all at different levels of compliance
LCD is LCD is LCD.... lowest is lowest is lowest. might as well just use grep, sed and awk. (oh, but that won't work on windows ;)