sql - phpmyadmin mysql error 1064 when creating table -
what wrong? ran ddl against mysql , , giving error #1064 - have error in sql syntax; check manual corresponds mysql server version right syntax use near 'varchar2(250) not null, bio varchar2(250) not null, id number(10) not' @ line 2
here's ddl:
create table dw.books( bio varchar2( 250 ) not null , id number( 10 ) not null , revenue varchar2( 20 ) , primary key ( id ) );
you confusing oracle , mysql. mysql doesn't provide either varchar2
not number
.
please see this page data types differences in oracle , mysql.
create table dw.books( bio varchar(250) not null , id int(10) not null , revenue varchar(20) , primary key (id) );
Comments
Post a Comment