MySQL Forums
Forum List  »  Newbie

Re: Marc, please make your post titles more informative
Posted by: Marc Ray
Date: October 05, 2018 06:45PM

my apologies for title. my script gets stuck here...

Executing:
CREATE SCHEMA `new_schema` ;
USE `new_schema` ;

CREATE TABLE PROD_TBL1 (
P_CODE varchar(50),
P_DESCRIPT varchar(50),
PRICE numeric(4,2),
);

Operation failed: There was an error while applying the SQL script to the database.
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 ')' at line 5
SQL Statement:
CREATE TABLE PROD_TBL1 (
P_CODE varchar(50),
P_DESCRIPT varchar(50),
PRICE numeric(4,2),
)


what is the right syntax to use near ')'?

i have other tables that use same format that worked fine

Options: ReplyQuote


Subject
Written By
Posted
October 05, 2018 06:10PM
Re: Marc, please make your post titles more informative
October 05, 2018 06:45PM


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.