01.04.2016, 20:02
Can someone explain me how to make a basic .sql database ?
I would like to explain me more about this:
I would like to explain me more about this:
- int(11)
- varchar(255)
- timestamp
- int(12)
- PRIMARY KEY
- ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=173 ;
- NOT NULL AUTO_INCREMEN
- NOT NULL DEFAULT CURRENT_TIMESTAMP
PHP код:
CREATE TABLE IF NOT EXISTS `adminlog` (
`entryID` int(11) NOT NULL AUTO_INCREMENT,
`value` varchar(255) NOT NULL,
`entryTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`tickcount` int(12) NOT NULL DEFAULT '0',
PRIMARY KEY (`entryID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=173 ;