//查詢全部語句 select * from table_name //查詢不重複的值 disti select distinct * from table_name //條件查詢 select column1,column2,column3... from table_name where some_column=some_value //排序查詢,默認排序是升序ASC 降序是DESC select column1,column2,column3... from table_name order by column1 ASC|DESC //查詢數據庫中的前面多少條數據,對於數據量較大的比較適用 mysql中 select column(s) from table_name limit number //刪除語句 delete from table_name where some_name=some_value //插入語句 insert into table_name(column1.column2,column3..) values (value1,value2,value3..) //更新語句 where 是指定某條記錄更新 若是省略了where ,數據庫中全部的記錄都會更新 update table_name set(column1=value1,column2=value2,column3=value3...) where some_column=some_value //模糊查詢 查詢已s開頭的全部數據記錄 select column_name(s) where some_column like 's%'