Quote:
Originally Posted by rogercbryan
I'm a big fan of the "For Dummies" books. I think I've read about six of them in the past. So I'll go out and get that book tomorrow.
Is SQL more related to programming code like php/html or is it more like an Access db? I know a little php/html (I can use FrontPage and MS Expressions) but I know a lot about Access as I created db's in the Marines that tracked field supplies for combat ready units using that.
I'm hoping its more like Access... ???
|
It's a bit of a both, here's an example so you can judge for yourself.
Quote:
CREATE TABLE `typical quiz` (
`id` mediumint(8) NOT NULL auto_increment,
`questions` varchar(255) NOT NULL default '',
`answers` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE(`questions`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
|
You see how it's similar very similar to both creating values in Access and typical programming/coding?
edit:
Forgot to give details. The code I wrote would create a new table called 'typical quiz' with three data fields. 'ID' is a hidden data type and mandatory just like in access which increments with each new input. Questions & Answers are the fields I'd edit and where the server will retrieve the data to display my quiz. I've highlighted the permissions and a some other stuf' so you can make sense of it.