»
S
I
D
E
B
A
R
«
MySQL Remove a Column
Apr 14th, 2010 by admin

To remove a column in MySQL is easy.

ALTER TABLE users DROP email;

Although it is very simple, but use it with caution as it permanently removes data without a warning.

MySQL Delete a Table
Apr 13th, 2010 by admin

To delete a table in MySQL, you can use the DROP TABLE command, for instance:

DROP TABLE users;

Be careful while using this function, this query deletes a table and its contents, without a warning.

MySQL Show Table Structure
Apr 13th, 2010 by admin

To see the structure of an existing table, you can use this query.

EXPLAIN countries;

In the example above, fields (aka. columns) from a table named ‘countries’ are listed in the results, with their properties.