作者sadstarest (大肚宇ˊ @●~ )
看板Database
標題[SQL ] ORACLE查詢問題
時間Sat Apr 5 00:30:01 2008
我是ORACLE新手
剛剛再練習發現了一個查詢問題
我的date有個欄位是symptom
dis symptom
感冒 腹瀉,頭痛,咳嗽
腸胃炎 腹瀉,嘔吐
我開始的想法是想查出有腹瀉症狀的disease
所以我key
select dis,symptom from disease
where symptom='腹瀉'
執行結果一直說查不到相關表格
後來我想用上面的condition指令應該是要
symptom只有腹瀉才查的出來
所以我的問題是
如果我想查出symptom部分字串
我應該如何設conditon呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.59.153.36
推 grence:like..雖然有效能上的問題,資料少是可以的 04/05 00:43
→ sadstarest:那請問還有其他指令更好的嗎? 04/05 00:57
推 javck:你可以輸入where symptom='%腹瀉%' 就可以滿足你要的效果 04/07 13:23