01.09.2017, 16:56
Create a table called 'guns' and run this query...
The integer values should be longer than five. Also, it's much more useful to show him how to write and execute queries than showing him how to create columns and tables via the user interface.
PHP код:
ALTER TABLE guns ADD charid INT(12);
ALTER TABLE guns ADD gunid INT(12) AFTER charid;
ALTER TABLE guns ADD ammo INT(12) AFTER gunid;
ALTER TABLE guns ADD slot INT(12) AFTER ammo;
Quote:
You enter in PHPMyAdmin, select the database, at the bottom you will have a category „create table” - https://gyazo.com/727c94aba5e7d9271529db52807533ab, enter the table name „guns” and 4 columns.
And then - https://gyazo.com/b936f4557d52a863bb7391a445274955 |