Many will facing issue when try to duplicate or clone database table in MySQL.
Below is the script and it's tested working well.
New table: tbltransaction_new
Existing table: tbltransaction
CREATE TABLE tbltransaction_new LIKE tbltransaction;
INSERT tbltransaction_new SELECT * FROM tbltransaction;
No comments:
Post a Comment