SHOW CREATE TABLE statement. : SHOW : MySQL Utilities MySQL TUTORIALS


MySQL TUTORIALS » MySQL Utilities » SHOW »

 

SHOW CREATE TABLE statement.


mysql>
mysql>
mysql> CREATE TABLE Employee(
    ->     id            int,
    ->     first_name    VARCHAR(15),
    ->     last_name     VARCHAR(15),
    ->     start_date    DATE,
    ->     end_date      DATE,
    ->     salary        FLOAT(8,2),
    ->     city          VARCHAR(10),
    ->     description   VARCHAR(15)
    -> );
Query OK, rows affected (0.02 sec)

mysql>
mysql>
mysql> show create table Employee;
+----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table    | Create Table                                                                                                                                                                                                                                                                                                                                                     |
+----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Employee | CREATE TABLE `employee` (
  `id` int(11default NULL,
  `first_name` varchar(15default NULL,
  `last_name` varchar(15default NULL,
  `start_date` date default NULL,
  `end_date` date default NULL,
  `salary` float(8,2default NULL,
  `city` varchar(10default NULL,
  `description` varchar(15default NULL
ENGINE=MyISAM DEFAULT CHARSET=latin1 |
+----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
row in set (0.00 sec)

mysql>
mysql> drop table Employee;
Query OK, rows affected (0.00 sec)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo MySQL Utilities
» SHOW