DROP table IF EXISTS address; CREATE TABLE address ( ID INT NOT NULL PRIMARY KEY, firstName VARCHAR(20), lastName VARCHAR(20), email VARCHAR(25), aDate DATE, aTime TIME, dayNumber VARCHAR(15), ## phone number to be called during the day eveningNumber VARCHAR(15), ## phone number to be called during the evening cellNumber VARCHAR(15) ## cell phone number ); INSERT INTO address VALUES (0,'James','Brocklebank','james_45 @live.ca','2008-06-29','07:03:30','','','not available'); SELECT * FROM address ORDER BY lastName;When i try to run the code I get an error message that says:
#1064 - 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 ')' at line 8
I don't get it? i don't see a problem.


Sign In
Create Account


Back to top









