Bluehost.com Web Hosting $6.95

MySQL limitations

This is a discussion on MySQL limitations within the PHP General forums, part of the PHP Programming Forums category; Does anyone know what the maximun number of columns I could put in a table is?? I can't find ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-28-2003
Mike Mannakee
 
Posts: n/a
Default MySQL limitations

Does anyone know what the maximun number of columns I could put in a table
is?? I can't find it in manual. Like, could I have a table with 200,000
columns?

Mike




Reply With Quote
  #2 (permalink)  
Old 07-28-2003
Brent Baisley
 
Posts: n/a
Default Re: [PHP] MySQL limitations

You should rethink your data structure if you want to create 200,000
columns. If you need to create that many columns, chances are you are
going to need to add more periodically. That means changing your table
structure which you shouldn't have to do in a well defined schema. I'm
guessing most of those columns would be empty for any given record.

Try changing your columns to rows and have a column that you use as a
row "label" to qualify what data that row holds. This gives you
virtually unlimited elements you can track, you can add new elements
very easily and it's easier to code. From a coding stand point your
just changing one parameter, the data type field.

Hope that leads you in the right direction.


On Monday, July 28, 2003, at 03:09 PM, Mike Mannakee wrote:

> Does anyone know what the maximun number of columns I could put in a
> table
> is?? I can't find it in manual. Like, could I have a table with
> 200,000
> columns?
>
> Mike
>

--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0