473,659 Members | 2,965 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Maximum # of columns creating a table

18 New Member
I am having a heck of a time creating a table with more than 140 or so columns when using php into mysql. Any known issues after a certain #?

Thanks,
Oct 12 '09 #1
4 1804
Markus
6,050 Recognized Expert Expert
Can you elaborate? Do you receive any errors. See this article.

Mark.
Oct 12 '09 #2
monion
18 New Member
From MYSQL I receive the following error message:

error while executing query

mysql error number 1005
cant create table 'inventory.#sql 4c_2b066a'(errn o: 139)


I can add a certain number of entries (1000 total, 125 identical lines as follows with different names):

IPF VARCHAR(20) NOT NULL, IPFDESCRIPTION VARCHAR(90) NOT NULL, IPFSIZE VARCHAR(20) NOT NULL, IPFNOTES VARCHAR(20) NOT NULL, IPFDISTRIBUTION VARCHAR(20) NOT NULL, IPFCURRENT VARCHAR(5) NOT NULL, IPFLIMIT VARCHAR(5) NOT NULL, IPFCOST VARCHAR(10) NOT NULL

When I attempt to add one more, the table is not created and I get the above mentioned error.
Oct 13 '09 #3
monion
18 New Member
So, InnoDB allows no more than 1000 columns. This is my problem, Can I choose something else? If so, how do I do it when creating the table from a php script?
Oct 13 '09 #4
monion
18 New Member
Disregard, MYISAM is the trick

Thank you for your help.....
Oct 13 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
3005
by: David.Tymon | last post by:
>Description: MySQL v4.1.0-alpha only allows a client to prepare a maximum of 254 statements. On the 255th mysql_prepare() call, a failure is returned with no information returned by mysql_error(). This occurs even if the statements are closed after each use. >How-To-Repeat: The following program highlights the problem. Just change the connection details to some database. It also assumes there is a table called dummy,
8
2960
by: Siemel Naran | last post by:
Hi. I have a table of products and versions, and these 2 columns are the unique key. My challenge is to write a SQL statement to find the latest version of each product. My solutions below seem correct, yet MySql complains that the syntax is incorrect. How to fix? And which solutions are MySql specific, and which are ANSISql (for
3
5007
by: Dave Crypto | last post by:
Hi There, SUMMARY: I need to know what the actual maximum date limit possible on a row of a MYSQL database. MORE DETAILS: For example, does a MYSQL database only allow 4032 bytes of data to be
2
28581
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
5
7574
by: Morten Mikkelsen | last post by:
Hi, On my SQL Server 2000, I have a table of data (tblAllData) containing a number of columns, some of which are 'secret'. I have to let some users access the database using ODBC from an Excel sheet, and I would like that they do not know at all that the columns exist. I tried creating a view for them (qryAllData) that only selects the columns that should be visible, but when the creating the ODBC-connection, both the query and the...
13
9898
by: Jo | last post by:
Hi. I'm getting the following error when creating a table with 250 columns .. I have tried creating it in a 32K tablespace , still the same issue. Is this a limitation in DB2? I am using DB2 v8.2 FP 9a. SQL0670N The row length of the table exceeded a limit of "32677" bytes. (Table space "".) SQLSTATE=54010
4
6382
by: kenny | last post by:
hi everybody, i have a question which may be rather trivial to some of you: in my scenario i have three columns with col 1 and 2 holding integers and i want to know the respective maximum for each row in col 3. i´ve been using something with max(...) but it works only for 1 parameter. i want to use only sql, no further vb... would be great if someone could help.... thx!
4
6472
by: m.wanstall | last post by:
I have a crosstab query that compiles data for Months of the year. I have a stacked select query on top of that crosstab query that uses the latest 2 months data and exports it to a fixed length flat file. Ideally I would like to be able to just select the Last 2 Columns of the Crosstab query as inputs to the Select query WITHOUT having to go in month after month and manually change it... I may be asking a bit much here but is there a...
5
13768
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with drag&drop on the same page (which was not possible). Now i´ve a new concept of the script, more object oriented. I´ve also commented the whole code so you guys can easier understand it engine. What exactly we need when trying to make a column drag &...
0
8335
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8747
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8528
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2752
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.