Look up the documentation for the CREATE TABLE command.
It appears (from a brief read) that you can do:-
create table bar (m int) select n from foo;
Not quite what you need, because you still have to specify all the columns and column types, but it will pull all the data into the table for you....
HTH,