天天看點

資料庫單表查詢資料庫單表查詢

資料庫單表查詢

基本格式
   表結構:desc  表名
   使用者的表:select table_name from user_tables
   檢視使用者:show  user
   查詢所有列:*
   查詢指定列:
   加别名:as
   消除重複行:distinct
   限定查詢:where
       (is null / is not null / and / or / not / between  and / in / not in/ order by (desc /asc ) )
   模糊查詢:like/not like  _ 表示一個字元,  %  表示若幹字元

           

繼續閱讀