jenniferG Posted September 13, 2007 Share Posted September 13, 2007 we are running mysql 4.0.25 and php 4.4 script line CREATE TABLE ANYTABLE LIKE SISTOCK; gives a syntax error. Thanks, Jennifer Quote Link to comment Share on other sites More sharing options...
Barand Posted September 13, 2007 Share Posted September 13, 2007 From manual In MySQL 4.1, you can also use LIKE to create a table based on the definition of another table, including any column attributes and indexes the original table has: CREATE TABLE new_tbl LIKE orig_tbl; Quote Link to comment 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.