gladiator83x Posted July 23, 2006 Share Posted July 23, 2006 Hi All,I tried to copy a table by using this line below but the duplicate table did not create--any suggestions?$query ="CREATE TABLE commentstate2 SELECT * FROM commentstate"; Quote Link to comment https://forums.phpfreaks.com/topic/15394-copy-a-mysql-table/ Share on other sites More sharing options...
448191 Posted July 23, 2006 Share Posted July 23, 2006 The problem is not in your query. From the MySQL manual:[quote]CREATE TABLE new_tbl SELECT * FROM orig_tbl;[/quote]Look elsewhere. Quote Link to comment https://forums.phpfreaks.com/topic/15394-copy-a-mysql-table/#findComment-62411 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.