First I use USE test;
CREATE TABLE entries {
'id' int NOT NULL AUTO_INCREMENT, 'title' NOT NULL, 'date' date NOT NULL default '0000-00-00', 'title' NOT NULL, 'subject' NOT NULL, 'context' NOT NULL, 'PRIMARY KEY(id) };
I don't know if it is 100% needed to put the varchar() with the fields since it should be implied to put anything there. But maybe I'm wrong in this?
Maybe most people use phpmyadmin. But I want to do it from the command line. Thanks!
This post has been edited by macosxnerd101: 04 January 2013 - 11:40 PM
Reason for edit:: Code tags are BBCode, not XML. Please [code] Code goes here [/code]

New Topic/Question
Reply


MultiQuote









|