If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > is there a limit to number of fields in a table?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-05-04, 05:07
houndour houndour is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
is there a limit to number of fields in a table?

Hi,

I have a form that has rather a lot of fields. 81 in total. And they need to be uploaded to a database. The form is a new car order form so it contains information such as customer details, dealer details, car details etc. As this info needs to be kept potentially forever, I need to have the dealer details in this database (I thought of refering to the dealer database for their addresses etc) but then this wouldn't work if the addresses changed.

I just wondered if having such a huge table is a problem. I did do database design at Uni but I don't ever remember them saying there was a limit to the number of fields.

Thanks,
Sam
Reply With Quote
  #2 (permalink)  
Old 08-05-04, 08:12
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
There is a limit on the number of columns in a table, but I can't think of any database engine that would have trouble with 81 columns. You might want to think about normalizing the data, since that will make things much easier to manage later, but you shouldn't need to do it just to reduce the number of columns in a table.

-PatP
Reply With Quote
  #3 (permalink)  
Old 08-19-04, 18:20
roman2 roman2 is offline
Registered User
 
Join Date: Aug 2004
Posts: 17
Columns in table: 2599, 1024, 1000 for MySQL, MS SQL Server, and Oracle, respectively. This is taken from www.mysql.com (from their feature comparison page)
Reply With Quote
  #4 (permalink)  
Old 08-20-04, 06:28
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Quote:
Originally Posted by roman2
Columns in table: 2599, 1024, 1000 for MySQL, MS SQL Server, and Oracle, respectively. This is taken from www.mysql.com (from their feature comparison page)
I took a quick look, but couldn't find their feature comparison page. I'd like to see what else they compare, and whether this is supposed to be a selling point ("forget those 1000-column limitation blues! Get twice the columns with MySQL!!!")
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #5 (permalink)  
Old 08-20-04, 09:30
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Here's a link to the MySQL Feature Comparison page.

-PatP
Reply With Quote
  #6 (permalink)  
Old 09-08-04, 21:47
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
Talking

"I did do database design at Uni but I don't ever remember them saying there was a limit to the number of fields."

Back when Codd designed the relational model he underestimated the future power of computers. He said, "640 is enough for anybody." So now we're stuck: you can't have more than 640 fields in a table, and that's why the industry is moving to modern technologies like XML.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On