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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -