Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8209113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:36:35+00:00 2026-06-07T09:36:35+00:00

I just installed MySQL 5.6 development release build to check some improvement in performance_schema

  • 0

I just installed MySQL 5.6 development release build to check some improvement in performance_schema and information_schema. And, I found this-

In sakila.actor table there are 4 columns. Checking from information_schema.INNODB_SYS_TABLES column-N_COLS shows 7 for actor instead of 4. I can see that for each table N_COLS shows 3+columns.

sakila.actor-

CREATE TABLE `actor` (
  `actor_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `first_name` varchar(256) NOT NULL,
  `last_name` varchar(45) NOT NULL,
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`actor_id`),
  KEY `last_name` (`last_name`,`actor_id`)
) ENGINE=InnoDB

SELECT * FROM information_schema.INNODB_SYS_TABLES;

TABLE_ID  NAME                        FLAG  N_COLS   SPACE  
--------  ------------------------  ------  ------  --------
      11  SYS_FOREIGN                    0       7         0
      12  SYS_FOREIGN_COLS               0       7         0
      38  sakila/actor                   1       7         0
      39  sakila/actor_info              1       7         0

From the docs it says N_COLS= The number of columns in the table.

So why does it show 3+columns for every table? Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:36:38+00:00Added an answer on June 7, 2026 at 9:36 am

    I found this on internet, it’s because InnoDB adds three hidden columns (DB_ROW_ID, DB_TRX_ID, DB_ROLL_PTR)

    you can look the source here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just installed the latest production release of MySQL (64-bit) on my Windows 7
I just installed ruby on rails on windows. install mysql and created a new
I was just looking at the MySql database created by drupal after I installed
Just installed Jenkins in Ubuntu 12.04 and I wanted to create a simple build
I just installed FuzzyFinder for gvim, though for some reason it's using an ultra
I'm working on Windows with Apache and PHP. I just installed MySQL, configured it,
OK, I just re-installed MySQL Servers 5.5(32bit to 64bit) on my Windows 7 64-bit
I just installed mysql with homebrew on mac OSX. The very first thing I
I just installed MySQL 5 on my server and imported a database from another
I'm getting this error when running the development environment through RubyMine 3.1. The mysql

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.