there will be a book about SQL suitable for beginners announced by sitepoint in early january
i would advise you not to use the "wysiwyg" panels of phpmyadmin until you have a complete understanding of how SQL works and how tables are designed
for the interim, do everything in the SQL window
for example,
Code:
CREATE TABLE reservations
( res_date DATE NOT NULL
, res_no TINYINT NOT NULL
, PRIMARY KEY ( res_date, res_no )
, lastname VARCHAR(50) NULL
, firstname VARCHAR(50) NOT NULL
, ...
);
and yes, at this point in your development, it is vital that you have a unique column (or set of columns) in every table
Bookmarks