Rules of thumb for field sizes?
Posted by: Macamba .
Date: November 16, 2015 07:29AM

When designing tables, are there rules of thumb for field sizes? At the moment, while I am designing my Java application I defined my (for example) address table as:

CREATE TABLE address 
	(add_id int primary key auto_increment, 
	 perident varchar(64), 
	 street varchar(64), 
	 number varchar(64), 
	 postcode varchar(6), 
	 city varchar(64), 
	 telephone varchar(64), 
	 email varchar(64) );

That might be a bit excessive (why?)

PS. the field 'perident' stands for personnel identifier, consisting of first initial and family name

Options: ReplyQuote


Subject
Written By
Posted
Rules of thumb for field sizes?
November 16, 2015 07:29AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.