phpmyadmin - What's wrong with this simple MySQL CREATE TABLE statement? -


it's simple create table statement i'm writing in phpmyadmin. ok, know easy way in phpmyadmin have full control. here's statement:

create table profile ( id int not null auto_increment, primary key(id), type int(1) not null, view int(1) not null default '1', ver int(1) not null default '2', email not null varchar(32), password not null varchar(16), first varchar(32), last varchar(32), site varchar(64), address varchar(32), city varchar(32), zip int, state char(2), country varchar(50), text, datereg int(20) ) engine=myisam default charset=utf8; 

i replaced

view int(1) not null default '1', ver int(1) not null default '2', email not null varchar(32), password not null varchar(16), 

with

view int(1) not null default 1, ver int(1) not null default 2, email varchar(32) not null , password varchar(16) not null , 

and worked


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -