Re: [SQL ] 關於在LIKE中使用 % 的語法的問題
你要的我做不到 但有取巧的方法看你要不要用看看
就是用%之前的數字來like
select * from BANK
where substring(interest,1,len(interest)-1) like '%ox%'
※ 引述《cityblue ( cityblue)》之銘言:
: 請問大家, 假設我有一資料表如下:
: BANK
: bid bname interest
: 01 Citybank 15%
: 02 ChasterBank 10%
: 03 NationalBank 11%
: interest屬性中的欄位已包含 % 的character
: 但我要在 WHERE B.interest LIKE 後加入string matching
: 請問如何能在LIKE後區別control character 及 data character?
: 謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.218.10.19
推
10/01 22:21, , 1F
10/01 22:21, 1F
→
10/02 08:29, , 2F
10/02 08:29, 2F
推
10/03 07:58, , 3F
10/03 07:58, 3F
推
10/31 17:41, , 4F
10/31 17:41, 4F
討論串 (同標題文章)