Since I can never remember the syntax to add a column to a table, here it is:
alter table foo_tablename add column foo_column int(10) default null
alter table
– the actual commandfoo_tablename
– the table name we’re alteringadd column
– telling sql to add a column instead of some other alterationfoo_column
– name of the column to addint(10) default null
– the column’s qualities (it’s an int up to 10 digits long, can be null and defaults to null