Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data types

Status
Not open for further replies.

eja2000

Programmer
Nov 30, 2003
209
NG
i have a field in my db which will only hold phone numbers and i want it to be the pk...

the fone numbers are all digits and start with 0932
and is 11 digits long..
what datatype can i use for this?
thxs
 
If it has to be a numeric integer you would have to use bigint
This allows data from -2^63 (-9223372036854775808) through 2^63-1 (9223372036854775807)
If you can get away with chars varchar(11)

Damian.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top