1. 程式人生 > >mysql查詢資料庫記錄

mysql查詢資料庫記錄

多列表排序:SELECT  * FROM behavior_record_sync ORDER BY 6 DESC,2

匹配單個字符集:SELECT  * FROM behavior_record_sync where owner_action like '_n'    _匹配單個

組合查詢:SELECT  code,warrant as c FROM behavior_record_sync WHERE code like "XN%" UNION SELECT code, warrant from behavior_record_sync WHERE code like "11%"