MYSQL table
#9

That wasn't really my point. My question to you is: why create an empty table to fill it later instead of creating the entire table in one go? These days I much rather prefer to type everything by hand because I find it at least equally as fast as clicking through a GUI.

This is what a typical CREATE TABLE statement looks like:
PHP код:
CREATE TABLE AccountWeapon (
    
accountid INT UNSIGNED NOT NULL,
    
weaponid INT UNSIGNED NOT NULL,
    
ammo INT UNSIGNED NOT NULL,
    
CONSTRAINT PRIMARY KEY (accountidweaponid),
    
CONSTRAINT FOREIGN KEY (accountidREFERENCES Account(idON DELETE CASCADE ON UPDATE CASCADE,
    
CONSTRAINT FOREIGN KEY (weaponidREFERENCES Weapon(idON DELETE RESTRICT ON UPDATE RESTRICT
); 
Reply


Messages In This Thread
MYSQL table - by Puff - 01.09.2017, 16:51
Re: MYSQL table - by webby - 01.09.2017, 16:55
Re: MYSQL table - by Luke_James - 01.09.2017, 16:56
Re: MYSQL table - by Puff - 01.09.2017, 17:03
Re: MYSQL table - by Vince - 01.09.2017, 17:09
Re: MYSQL table - by Puff - 01.09.2017, 17:13
Re: MYSQL table - by Banditul18 - 01.09.2017, 17:34
Re: MYSQL table - by Luke_James - 01.09.2017, 17:48
Re: MYSQL table - by Vince - 01.09.2017, 17:59

Forum Jump:


Users browsing this thread: 2 Guest(s)