Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> design quest.
Hi all, I'm looking for some advice. I'm using Oracle 8.0.5. What I'm
interested in is the design of reference type tables. Like a vehicle type.
My current standard is to make these tables like this:
create table vehicle_type
(
id integer not null, -- PK
cd varchar2(6) not null, -- Unique; usually less than 4 chars also.
descp varchar2(75) null
)
Then to reference them in other tables by Id.
I'm thinking that the id field is not needed and I can use the code field.
I'm concerned about performance.
Any ideas....Ed Received on Mon Jul 12 1999 - 10:24:49 CDT
![]() |
![]() |