1. 查詢住址在北京的學生
select student_id,student_name
from students
where contains( address, 'beijing' )
remark: beijing是乙個單詞,要用單引號括起來。
2. 查詢住址在河北省的學生
select student_id,student_name
from students
where contains( address, '"heibei province"' )
remark: hebei province是乙個片語,在單引號裡還要用雙引號括起來。
3. 查詢住址在河北省或北京的學生
select student_id,student_name
from students
where contains( address, '"heibei province" or beijing' )
remark: 可以指定邏輯操作符(包括 and ,and not,or )。
4. 查詢有 '南京路' 字樣的位址
select student_id,student_name
from students
where contains( address, 'nanjing near road' )
remark: 上面的查詢將返回包含 'nanjing road','nanjing east road','nanjing west road' 等字樣的位址。
a near b,就表示條件: a 靠近 b。
5. 查詢以 '湖' 開頭的位址
select student_id,student_name
from students
where contains( address, '"hu*"' )
remark: 上面的查詢將返回包含 'hubei','hunan' 等字樣的位址。
記住是 *,不是 %。
6. 類似加權的查詢
select student_id,student_name
from students
where contains( address, 'isabout (city weight (.8), county wright (.4))' )
remark: isabout 是這種查詢的關鍵字,weight 指定了乙個介於 0~1之間的數,類似係數(我的理解)。表示不同條件有不同的側重。
7. 單詞的多型查詢
select student_id,student_name
from students
where contains( address, 'formsof (inflectional,street)' )
remark: 查詢將返回包含 'street','streets'等字樣的位址。
對於動詞將返回它的不同的時態,如:dry,將返回 dry,dried,drying 等等。
WaitForSingleObject函式的使用
程式舉例 1 建立對話方塊應用程式,專案名稱為mytestthread 2 新增按鈕,命名為啟動和停止,在對話方塊中增加編輯框,id為idc time,3 增加成員變數,handle m hthread 2 此為執行緒的控制代碼 4 定義全域性變數,用來控制線程的執行與否 volatile bool...
cvCreateVideoWriter函式使用
cvcreatevideowriter函式使用 2011 11 04 15 47 例如,cv fourcc p i m 1 是mpeg 1 codec,cv fourcc m j p g 是motion jpeg codec cv fourcc m p 4 2 mpeg 4.2 codec cv f...
CentimetersToPoints函式出錯
在word開發中,碰到centimeterstopoints函式呼叫出錯,提示未指定的錯誤的問題。解決辦法為修改centimeterstopoint函式 匯入msword.olb後的centimeterstopoint函式如下 修改後的centimeterstopoint函式如下,紅色表示的部分為增...