Hi,

Does anybody know how to copy an existing mySQL table schema with varchar datatype

my sql statement is:

CREATE TABLE new_table AS SELECT * FROM old_table where 1=0;

All the text columns in the old_table are in VARCHAR datatype, however,
after I copy to a new_table, all columns change to CHAR format. Please
help!


Thanks,
Wai

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to