MySQL Forums
Forum List  »  Performance

SHOW CREATE TABLEs
Posted by: Jaap Vermeer
Date: November 17, 2012 11:36AM

Wow thanks Rick, that is very informative.
I will work trough them one by one.

here are the create tables:
mysql> SHOW CREATE TABLE GroupStructure;
+----------------+---------------------------------------------------------------------------+
| Table          | Create Table                                                                                                                                                |
+----------------+---------------------------------------------------------------------------+
| GroupStructure | CREATE TABLE `GroupStructure` (
  `gc` smallint(6) DEFAULT NULL,
  `sgc` smallint(6) DEFAULT NULL,
  KEY `gsgc` (`gc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+----------------+---------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> SHOW CREATE TABLE Groups;
+--------+---------------------------------------------------------------------------------------------------------+
| Table  | Create Table                                                                                                                                                                              |
+--------+---------------------------------------------------------------------------------------------------------+
| Groups | CREATE TABLE `Groups` (
  `gl` tinyint(4) DEFAULT NULL,
  `gc` smallint(6) DEFAULT NULL,
  `gd` varchar(255) DEFAULT NULL,
  KEY `ggcgl` (`gc`,`gl`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+--------+---------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> SHOW CREATE TABLE VCG2LU;
+--------+-------------------------------------------------------------------------------------------------------------+
| Table  | Create Table                                                                                                                                                                                  |
+--------+-------------------------------------------------------------------------------------------------------------+
| VCG2LU | CREATE TABLE `VCG2LU` (
  `vcc` smallint(6) DEFAULT NULL,
  `gc` smallint(6) DEFAULT NULL,
  `luc` mediumint(9) DEFAULT NULL,
  KEY `vccgc` (`vcc`,`gc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+--------+-------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> SHOW CREATE TABLE SegmentsVCG2LU;
+----------------+-------------------------------------------------------------------------------------------------+
| Table          | Create Table                                                                                                                                                                                                                                                        |
+----------------+-------------------------------------------------------------------------------------------------+
| SegmentsVCG2LU | CREATE TABLE `SegmentsVCG2LU` (
  `vcc` smallint(6) DEFAULT NULL,
  `smc` smallint(6) DEFAULT NULL,
  `myc` smallint(6) DEFAULT NULL,
  `vc` smallint(6) DEFAULT NULL,
  `vd` varchar(255) DEFAULT NULL,
  KEY `svd` (`vd`(8))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+----------------+-------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> SHOW CREATE TABLE Subjects;
+----------+-------------------------------------------------------------------------------------------------------------------+
| Table    | Create Table                                                                                                                                                                                        |
+----------+-------------------------------------------------------------------------------------------------------------------+
| Subjects | CREATE TABLE `Subjects` (
  `lul` tinyint(4) DEFAULT NULL,
  `luc` mediumint(9) DEFAULT NULL,
  `lus` varchar(255) DEFAULT NULL,
  KEY `sluclul` (`luc`,`lul`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+----------+-------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

mysql> SHOW CREATE TABLE VehicleContexts;
+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| Table           | Create Table                                                                                                                                                                                                                |
+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| VehicleContexts | CREATE TABLE `VehicleContexts` (
  `vcc` smallint(6) DEFAULT NULL,
  `vc` smallint(6) DEFAULT NULL,
  `ec` tinyint(4) DEFAULT NULL,
  `tc` tinyint(4) DEFAULT NULL,
  KEY `ec1` (`ec`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

Options: ReplyQuote


Subject
Views
Written By
Posted
2607
November 16, 2012 11:32AM
1491
November 17, 2012 10:41AM
SHOW CREATE TABLEs
2801
November 17, 2012 11:36AM
1253
November 18, 2012 03:37PM
1017
November 18, 2012 05:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.