MySQL Forums
Forum List  »  Newbie

error 1064
Posted by: Marc Ray
Date: October 05, 2018 09:37AM

please help me fix this problem. i am trying to create schema using workbench 8.0. here is what i got after i clicked "execute"...

Operation failed: There was an error while applying the SQL script to the database.
CREATE SCHEMA `sample` ;
USE SCHEMA `sample` ;

AGENT_CODE varchar(50),
AGENT_PHONE varchar(50)

INSERT INTO AGENT VALUES('125','6152439887');
INSERT INTO AGENT VALUES('167','6153426778');
INSERT INTO AGENT VALUES('231','6152431124');
INSERT INTO AGENT VALUES('333','9041234445');

ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SCHEMA `sample`' at line 1
SQL Statement:
USE SCHEMA `sample`

Options: ReplyQuote

Written By
error 1064
October 05, 2018 09:37AM
October 05, 2018 09:46AM
October 05, 2018 09:53AM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.