SunQuest
           Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 17th, 2001, 04:07 PM
hothoundz hothoundz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 2 hothoundz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Newbie! Help! How 2 create table???

I have to create a table with the following details:

# CREATE TABLE EGuest (
# num int(11) NOT NULL auto_increment,
# fullname text NOT NULL,
# email text NOT NULL,
# uin text,
# homepage text,
# location text,
# comment text NOT NULL,
# date text NOT NULL,
# PRIMARY KEY (num)

I'm using PHPMyADMIN and the only fields are:
Field Type Length/Set Attributes.

How do I set auto-increment and primary key & all the rest of the fields?

I have tried to read-up on this but remain very confused

Any help is much appreciated!

Reply With Quote
  #2  
Old July 18th, 2001, 03:18 PM
oach oach is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: knee deep in sh*t
Posts: 194 oach User rank is Sergeant Major (2000 - 5000 Reputation Level)oach User rank is Sergeant Major (2000 - 5000 Reputation Level)oach User rank is Sergeant Major (2000 - 5000 Reputation Level)oach User rank is Sergeant Major (2000 - 5000 Reputation Level)oach User rank is Sergeant Major (2000 - 5000 Reputation Level)oach User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 22 h 1 m 34 sec
Reputation Power: 39
Send a message via AIM to oach Send a message via MSN to oach Send a message via Yahoo to oach
hothoundz,

I don't quite understand what you are asking for but I will try to answer what I think you are asking. (I think you want to know how to set up the table!????)

1. Make sure you have actually created a db
---create database [dbName]
2. You have to be using the a db to make a table
---use [dbName]
3. Create your table
---create table EGuest(num int(11) auto_increment not null, fullname varchar(50) not null, email varchar(50) not null, uin varchar(255), homepage varchar(255), location varchar(255), comment varchar(255) not null, date date not null, primary key(num));

That should do it. Once you are finished you can "look" at the db by--descrbie EGuest;

Also go and check out http://www.mysql.com/doc/ and also go to the mysql discussion boards on this site and read some of the q/a to help yourself. Doing this is very useful.

Later,
oach

Reply With Quote
  #3  
Old July 18th, 2001, 03:44 PM
hothoundz hothoundz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 2 hothoundz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Excellent - thanks! I'll get on to it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Newbie! Help! How 2 create table???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway