All,
I have read several other posts before posing my question to you.
I have a lot of programming/admin experience with other databases: MySql, MSSQL, PostGres, and the one which will not be named. I just don't have much experience with Oracle.
I was tasked with designing a few web-applications and supporting database tables. The tables were designed using an ER diagram, and sent to the development group for implementation. When they sent back the proposed table creation statements, I saw two things that seems wrong to me. The primary key is NUMBER(5)
and the sequence set the MAXVALUE
to 99999.
I would have expected that the MAXVALUE
would be omitted in favor of NOMAXVALUE
Primary key column be a NUMBER(*,0)
or a LONG
. Since I don't have much experience with Oracle table design, would you please offer up your advice?
Sincerely
Kristofer Hoch
Edit
Thank you for the information on LONG
. I'll make sure to use NUMBER, but I'm still unclear on the best way to define it: NUMBER
, or NUMBER(*,0)
, or NUMBER(9)
, etc.