Jump to content

[SOLVED] TINYINT


otuatail

Recommended Posts

I can't use this script to insert a table. State problem around the TinyInt but documents say it's ok

 

DROP TABLE IF EXISTS `pages`;

CREATE TABLE IF NOT EXISTS `pages` (

  `id` int(11) NOT NULL auto_increment,

  `Current` unsigned TINYINT( ) default NULL,

  `History` varchar(100) default NULL,

  `Date` varchar(15) default NULL,

  PRIMARY KEY  (`id`)

) TYPE=MyISAM AUTO_INCREMENT=1 ;

 

Now value in brackets but does it need it? I only want a value 0 - 255

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/72857-solved-tinyint/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.