|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
UNSIGNED or BINARY?
Hi,
i'm making a MySQL database to run my website, and was wondering: what's the difference between the field types UNSIGNED and BINARY? Thanks, Corbb |
|
#2
|
|||
|
|||
|
The attribute UNSIGNED is changes the range of an integer type. For exampe the INT has this range: -2147483648 to 2147483647, but when it's marked as UNSIGNED, it will have this range: 0 to 4294967295
http://www.mysql.com/doc/N/u/Numeric_types.html You use the BINARY attribute when you want to store binary data.. like f.ex. an image in the database
__________________
Best Regards, Håvard Lindset |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > UNSIGNED or BINARY? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|