Change the @@STORAGE_ENGINE : Global Variables « Command MySQL « SQL / MySQL






Change the @@STORAGE_ENGINE

      
mysql>
mysql> SET @@STORAGE_ENGINE = 'InnoDB'
    -> ;
Query OK, 0 rows affected (0.00 sec)

mysql> CREATE   TABLE TEAMS
    ->         (TEAMNO      INTEGER NOT NULL,
    ->          EmployeeNO    INTEGER NOT NULL,
    ->          DIVISION    CHAR(6) NOT NULL,
    ->          PRIMARY KEY (TEAMNO),
    ->          FOREIGN KEY (EmployeeNO)
    ->             REFERENCES EmployeeS (EmployeeNO))
    -> ;
mysql> SELECT   *
    -> FROM     TEAMS
    -> WHERE    EmployeeNO NOT IN
    ->         (SELECT   EmployeeNO
    ->          FROM     EmployeeS);
mysql>
mysql> drop table teams;

   
    
    
    
    
    
  








Related examples in the same category

1.View the current setting for the global transaction isolation level by using the @@global.tx_isolation system variable
2.Returns the isolation level for the current session and the maximum permitted size of the binary log file
3.SET @@session.character_set_client
4.SET @@session.character_set_results
5.SET @@character_set_connection
6.SELECT @@COLLATION_DATABASE
7.Determine the isolation level of a connection
8.Determining the Communication Forms Supported by the MySQL Server
9.Change the value of the SQL_MODE parameter to PIPES_AS_CONCAT.