09.02.2013, 10:15
hi
i want to ask how to create tables for mysql scripts for example i downloaded reports system and what kind of tables do i need to make
do i create like table called reports and inside this table id, reporter, reported and so on... and also how do i know what type of table should i make (you know when you have to chose "int" or "varchar"....heaps more) for help + rep
i want to ask how to create tables for mysql scripts for example i downloaded reports system and what kind of tables do i need to make
Код:
CREATE TABLE `reports` ( `id` INT NOT NULL AUTO_INCREMENT , `reporter` VARCHAR( 24 ) NOT NULL , `reported` VARCHAR( 24 ) NOT NULL , `reason` VARCHAR( 24 ) NOT NULL , `description` VARCHAR( 68 ) NOT NULL , `read` INT( 2 ) , `time` VARCHAR( 24 ) NOT NULL , PRIMARY KEY ( `id` ) )