Jump to content
Sign in to follow this  
otuatail

unsigned tinyint

Recommended Posts

Sorry but can't get this table creation to work. Any help?

 

DROP TABLE IF EXISTS `config`;
CREATE TABLE IF NOT EXISTS `config` (
  `EntryDate` date DEFAULT NULL,
  `BalanceValue` decimal(6,2) NOT NULL DEFAULT '0.00',
  `Mode` unsigned tinyint NOT NULL DEFAULT 0
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
 

Share this post


Link to post
Share on other sites

3 is the "width" of the numbers supported. Since a TINYINT UNSIGNED supports 0-255 that's three digits by default.

 

The width doesn't really matter and doesn't limit what you can store.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.