elementax — 2011-08-25T11:11:01-04:00 — #1
Hey, I was just wondering how I could go about making a simple MySQL table with 3 columns, i.d (#), first name, and last name?
It's for practice, and I can figure it out easily on MS access, but not MySQL. What is the best way to create tables in a MySQL database, I'm a new user
Basically, something like this, but in a MySQL table;
I.D | First Name | Last Name
1 | John | Doe
r937 — 2011-08-25T11:33:45-04:00 — #2
run this query --
CREATE TABLE simple
( id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT
, firstname VARCHAR(99)
, lastname VARCHAR(99)
guelphdad — 2011-08-25T12:04:52-04:00 — #3
If you haven't done it already, read through the tutorial in the MySQL manual. Chapter #3.
It will help you get familiar with this database app if you are going to use it.
elementax — 2011-08-25T12:29:16-04:00 — #4
I was just confused about one thing (I may be realllllly off, but please let me know).
In order to view my tables, etc, I must be running mysql server on either my PC (local) or my webhost if I were to upload it, correct?
guelphdad — 2011-08-25T16:18:11-04:00 — #5
you have to be running it on your PC or host. The host most likely WILL NOT allow you to install it, they would either provide it or not. If you find a host that doesn't provide mysql, keep looking for a better host.