This page gives some simple tasks to do with manipulating the tables in a MySQL database.
tablename contains,
SHOW COLUMNS IN tablename;
colname with a boolean type to a table called name,
mysql> ALTER TABLE name ADD COLUMN colname BOOLEAN;
colname from a table name,
mysql> ALTER TABLE name DROP colname;
colname with the type INTEGER as the first column in the table, use
mysql> alter table tablename modify colname integer first;To put a column called
col1 with the type INTEGER after col2 in the ordering, use
mysql> alter table tablename modify col1 integer after col2;The type of
col2 does not need to be specified.]]>