select 基本常用语法

***********************************************************  
   
   
   
   
   
  SELECT语法:(基本)  
   
   
   
  *************************************************************  
  **********************************************************  
  SELECT   [DISTINCT]  
  (column   [{,   column   }   ]   )|   *  
  FROM   table   [   {   ,   table}   ]  
  [ORDER   BY   column   [ASC]   |   [DESC  
  [{   ,   column   [ASC]   |   [DESC   }   ]   ]  
  WHERE   predicate   [   {   logical-connector   predicate   }   ];  
  ------------------------------------------------------  
   
  INSERT语法:  
   
  INSERT   INTO   table  
  [(column   {   ,column})]  
  VALUES  
  (columnvalue   [{,columnvalue}]);  
  ------------------------------------------------------  
   
  UPDATE语法:  
   
  UPDATE   table  
  SET   column   =   value   [{,   column   =   value}]  
  [   WHERE   predicate   [   {   logical-connector   predicate}]];  
  ------------------------------------------------------  
   
  DELETE语法:  
   
  DELETE   FROM   table  
  [WHERE   predicate   [   {   logical-connector   predicate}   ]   ];  
  ------------------------------------------------------  

你可能感兴趣的:(select)