mysql的between查到的是一個閉區間 包括邊界值,且值大於等於左區間小於等於右區間

select id from t_invoice_detail where id BETWEEN 66 and 68 查出來的結果包括66和68在內 等同於求id>=66 and id<=68 select id from t_invoice_detail where id BETWEEN 68 and 66 調換順序 且值大於等於左區間小於等於右區間 等同於求id>=68 and id<=66
相關文章
相關標籤/搜索