sql - Receiving error with decimal data type mySQL -
create table wlportfolio ( symbolid mediumint not null auto_increment, symbol_userid mediumint not null, symbol default null, holding default null, amount decimal(12,2) default null, primary key (symbolid) ); i receiving error when try import database phpmyadmin via ssh (corresponding code above):
error 1064 (42000) @ line 33: have error in sql syntax; check manual corresponds mysql server version right syntax use near 'default null, holding default null, amount decimal(12,2) default null, ' @ line 5 the partition in error decimal data type. knowledge decimal wat have done should keep "amount" value 12 characters long decimal values going 2 characters. believe correct syntax, yet still receive error.
i have tried changing around default value if reason causing error or if compatibility issue error. no avail.
any appreciated.
completely missed declaring values holding , symbol, rookie mistake -_- guys
define types fields.
create table wlportfolio ( symbolid mediumint not null auto_increment, symbol_userid mediumint not null, symbol mediumint default null, holding mediumint default null, amount decimal(12,2) default null, primary key (symbolid) );
Comments
Post a Comment