我需要將表從一個數據庫複製到另一個數據庫。於是,我就在SqlFiddle查詢如下但是得到錯誤Sql將表從一個數據庫複製到另一個數據庫
CREATE TABLE ForgeRock
(`id` int, `productName` varchar(7), `description` varchar(55))
;
INSERT INTO ForgeRock
(`id`, `productName`, `description`)
VALUES
(1, 'OpenIDM', 'Platform for building enterprise provisioning solutions'),
(2, 'OpenAM', 'Full-featured access management'),
(3, 'OpenDJ', 'Robust LDAP server for Java')
;
CREATE TABLE ForgeRock1 AS SELECT * FROM ForgeRock
錯誤:
DDL and DML statements are not allowed in the query panel for MySQL; only SELECT statements are allowed. Put DDL and DML in the schema panel.
由於錯誤狀態,SQLFiddle不允許您將CREATE TABLE語句放在右側的框中。把它放在左邊的盒子裏。 http://sqlfiddle.com/#!9/2f1c9/1 –