我如何搜索mysql中的特定字符串? 我試過使用包含 - 給我錯誤:mysql查詢 - 包含?
SELECT r.name
, r.network
, r.namestring
, i.name
, r.rid
, i.id
, d.dtime
, d.ifInOctets
, d.description
FROM router AS r
INNER JOIN interface AS i ON r.rid = i.rid
INNER JOIN 1278993600_1_60 AS d ON i.id = d.id
AND d.dtime BETWEEN 1279027200 AND 1279029000
WHERE r.network = "ITPN"
AND i.status = "active"
AND i.description CONTAINS ' DBK'
請幫忙。
CONTAINS是全文搜索(FTS)語法,並且SQL Server和Oracle都支持關鍵字(儘管支持的語法不同)。 – 2010-08-12 15:40:27