Random Posted April 5, 2003 Share Posted April 5, 2003 I am using PuTTY to access my mysql database. I want to add a table named users into it with rows named username and password. How would I write this up? I have this but there is a syntax error: mysql> CREATE TABLE users ( username VARCHAR(20), password VARCHAR(20)); thanks Quote Link to comment Share on other sites More sharing options...
Avalanche Posted April 6, 2003 Share Posted April 6, 2003 I think mysql> CREATE TABLE users ( id tinyint(4) DEFAULT \'0\' NOT NULL AUTO_INCREMENT, username varchar(20), password varchar(20)); should work. Of course you can get rid of the auto_increment if you want. Tell me how it works out. Quote Link to comment Share on other sites More sharing options...
Random Posted April 6, 2003 Author Share Posted April 6, 2003 ok, i was forgetting the int line. eehhe. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.