We have more than 300 columns in a particular table. Now when we are trying to add new columns to the table. We are getting the below error. Anyone knows how to resolve it?
NULL : MySQL error 1118: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
Sorry, but if you have more than 300 columns in a table, you’re not doing relational database design right…
You have to ask yourself, from those 300 columns, that’s not all undifferentiated chaos, is it? Find the logic and organize your information in related tables as rows.
If I were you, I would still revise my DB design. Having a ton of disorganized information in a single row means that you won’t be able to reap the benefits of a proper organization. You will have trouble searching and filtering, you will waste space needlessly repeating data, etc.