mysql 排序mysql
select core from table order by; 升序
select core from table order by core desc; 降序
select core from table where core between 5 and 10; where求core介於5和10之間的全部值,包括指定的開始值和結束值。
select name from table where core is null; 檢查空值
select request_id,name from ods_senseid_third_party_v2_wj where name regexp "MD." limit 5; regexp 後面跟着正則表達式
select request_id,name from ods_senseid_third_party_v2_wj where request_id like "%178" limit 2; like 跟着通配符 %模糊匹配, _單個匹配