MYsql client first day of graphical tools

Client graphical tools: SQLyog
    ## the DML: additions and deletions to the data table (key)
     1. Add Data
    * Syntax:
       * INSERT INTO table name (column names 1, 2 column name,,,, column name n) values (Table 1, table 2, and table n-);
          * Note:
             1. the column names and values correspond 
             2. If the table name, column name is not defined, the default value is added to all columns 
                 insert into table values (value 1, value 2, ... value n-); 
             3. in addition to the digital type, the use of other types of marks    
     2. delete data
     * syntax:
         * delete from table {where conditions}
   * Note:
      1. If not condition table is deleted All records
      2. If you want to delete all the data: TRUNCATE tABLE table name; / delete the table, and then create a different table
  3. modify data
     * syntax:
         * Update table set column name 1 = value 1, 2 column names value = 2, ... {where conditions};
     * Note:
         1. If not conditions, all records in the table is deleted
 
 
## DQL: record lookup table
   * slect * from table name;

   
 

Guess you like

Origin www.cnblogs.com/yuanning/p/11960563.html