We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Database Custom Fields

Development and Programming

anonymous162744's avatar
anonymous162744
58 posts
14 years ago
anonymous162744's avatar anonymous162744

I’m looking to write some SQL queries on the ExpressionEngine database and have a few questions about the column names. If I look at my exp_channel_data table I see a bunch of columns that are incremented field_id_1….field_id_150, etc, but do not have the actual name of the field that was set up in the control panel.

All my entries have the same basic information, which would be one of three values, so it makes it impossible to tell which column belongs to which custom field. Am I missing something?

Is there an easy way to figure out the name of the actual column instead of this arbitrary column name?

ac.

       
Dan Decker's avatar
Dan Decker
7,338 posts
14 years ago
Dan Decker's avatar Dan Decker

Hi Anthony,

That information is stored in a separate table in the database (in the format you are looking for). We cannot really guide you in how to make direct changes to your ExpressionEngine Database and we caution against doing so unless you are extremely confident in your abilities.

I’m going to migrate this to the Development and Programming area and let the Community there offer their guidance and insight.

Cheers,

       
the3mus1can's avatar
the3mus1can
426 posts
14 years ago
the3mus1can's avatar the3mus1can

In the exp_channel_data column names the integer at the end of the column name corresponds to the field_id in the exp_channel_fields table which also contains the fields field name.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.