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 Link to comment https://forums.phpfreaks.com/topic/69213-create-table-like/ 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; Link to comment https://forums.phpfreaks.com/topic/69213-create-table-like/#findComment-347857 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.