| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Stupid SQL Question
Are TINYINT(3), INT(3), SMALLINT(3) all the same? My feeble mind is having trouble with the "length" thing. Am I correct in thinking that it means the number of digits - assuming UNSIGNED: (2) would be 0-99, (3) would be 0-999. That right? |
|
|
|
|
|
#4 (permalink) |
|
mingin dawg baitch
|
bigint Integer (whole number) data from -2^63 (-9,223,372,036,854,775,808) through 2^63-1 (9,223,372,036,854,775,807). Storage size is 8 bytes. int Integer (whole number) data from -2^31 (-2,147,483,648) through 2^31 - 1 (2,147,483,647). Storage size is 4 bytes. The SQL-92 synonym for int is integer. smallint Integer data from -2^15 (-32,768) through 2^15 - 1 (32,767). Storage size is 2 bytes. tinyint Integer data from 0 through 255. Storage size is 1 byte. |
|
|
|
#6 (permalink) | |
|
For all your goober needs
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,531
|
Quote:
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison
prem ghinde |
|
|
![]() |