Hello
I'm using the PHP/MySQL Dummies book to put together a database using MySQL 5.5.
Following the example I have created a database called "renewals" and typed in the following lines:
create table Member (
loginName varchar(20) not null,
createDate date not null,
password varchar(255) not null,
lastName varchar(50),
firstName varchar(50),
email varchar(255),
primary key (loginName) );
I'm getting an error message :
Error 1064 (42000) 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 "renewals
create table Member (
loginName varchar(20) not null,
createDate DATE n' at line 1
I'm a complete newbie at this, the text was typed in from the dummies book so I've no idea where I might have gone wrong. Can someone advise?
regards
Pendle
I'm using the PHP/MySQL Dummies book to put together a database using MySQL 5.5.
Following the example I have created a database called "renewals" and typed in the following lines:
create table Member (
loginName varchar(20) not null,
createDate date not null,
password varchar(255) not null,
lastName varchar(50),
firstName varchar(50),
email varchar(255),
primary key (loginName) );
I'm getting an error message :
Error 1064 (42000) 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 "renewals
create table Member (
loginName varchar(20) not null,
createDate DATE n' at line 1
I'm a complete newbie at this, the text was typed in from the dummies book so I've no idea where I might have gone wrong. Can someone advise?
regards
Pendle