Get the App
SLTechnology News&Howtos  ›  Database  › 

Oracle instr () function replaces like to realize fuzzy query

Shulou Source: shulou.com Published: 2022-06-01 14:30:11 10月02日 Update

You need to query whether the value in the Message field in One Table is included in the Message field in Two Table:

Select a.Messagerec b.Message from One a, Tow b where instr (a.Messagerep b.Message) > 0; (b.Message is included in a.Message)

Instr (title,'Oracle') > 0 is equivalent to like

Instr (title,'Oracle') = 0 equals not like

Tags: Query function Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Apple Microsoft Shulou Technology Shulou Information