Determines whether the value of an expression is inclusively between the values of two expressions of the same type.
确定一個表達式值是否包含在兩個相同類型的表達式的值之間。
<dl></dl>
<dt></dt>
eTestValue
<dd>指定一個要測試的值。 </dd>
eLowValue
<dd>指定一個下界值。 </dd>
eHighValue
<dd>指定一個上界值。</dd>
邏輯值或者空值。
如果指定的表達式的值等于其中一個邊界值或者大于下界值且小于上界值, <b>BETWEEN( )</b> 傳回真 (.T.)。 否則, <b>BETWEEN( )</b> 返 回假 (.F.)。如果 eLowValue 或者 eHighValue 是空值, <b>BETWEEN( )</b> 傳回空值。
示例
下面的例子掃描<code>orders</code> 表中 <code>order_amt</code>字段值在 950 和 1000 之間的所有記錄,并且顯示<code>cust_id</code> 字段和 <code>order_amt</code> 字段。