Update my question, after negative vote.
I have the following table.
+-------------------------------+
| tbl_IndexDemo |
+---------+------+--------------+
| ID | INT | Primary Key |
| FK_1 | INT | Foreign Key |
| FK_2 | INT | Foreign Key |
| FK_3 | INT | Foreign Key |
| FK_4 | INT | Foreign Key |
+---------+------+--------------+
It has one Primary Key and four Foreign Keys.
I am trying to estimate size (in bytes) of a row.
What is the size if all fields have data? I calculated
ID 4 bytes + 4 bytes (Index-PK)
FK_1 4 bytes
FK_2 4 bytes
FK_3 4 bytes
FK_4 4 bytes
Total per row = 24 bytes
And if FK_3 is emtpy or NULL, what is the size of the row?
I am using MariaDB with InnoDB.