Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
CREATE TABLE login2 (
  username varchar(10) NOT NULL,
  password varchar (10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET =latin1;

Msg 102, Level 15, State 1, Line 4
Incorrect syntax near '='.
Posted
Updated 19-Nov-11 20:24pm
v3
Comments
Mehdi Gholam 20-Nov-11 2:24am    
EDIT -> fixed formatting and tagged to mySql
Mehdi Gholam 20-Nov-11 2:25am    
What version of MySql are you using?
2011999 20-Nov-11 2:31am    
SqlServer Management Studio 2008 R2

1 solution

You have tagged your Question with "MySQL".

And in comments you specified.
Quote:
SqlServer Management Studio 2008 R2

Get relax and decide which RDBMS you are going to use.

For SQL Server.

http://msdn.microsoft.com/en-us/library/ms174979.aspx

http://msdn.microsoft.com/en-us/library/ms131327.aspx

For MySQL
http://dev.mysql.com/doc/refman/5.1/en/create-table.html
 
Share this answer
 
Comments
Mehdi Gholam 20-Nov-11 2:55am    
InnoDB is mySQL
Mehdi Gholam 20-Nov-11 2:58am    
5'ed
RaisKazi 20-Nov-11 3:00am    
Thank you Mehdi.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900