oracle模糊查询sql语句 oracle如何进行多个字段的模糊查询?

oracle如何进行多个字段的模糊查询?语法:select*from table whereDBMSU业务线仪表(字段名(clod type),“query condition”,1,1)> 0创

oracle如何进行多个字段的模糊查询?

语法:select*from table where

DBMSU业务线仪表(字段名(clod type),“query condition”,1,1)> 0

创建表产品(

productid number(10)not null,

name VARCHAR2(255),

description CLOB)

查询语句:

select t.productid,T.产品名称T

其中DBMSu业务线仪表(t.description,“AAA”,1,1)>;0

在Oracle中,可以使用instr函数判断字符串是否包含指定字符。语法如下:

instr(sourcestring,deststring,start,appertorposition)

其中sourcestring代表源字符串;deststring代表在源字符串中搜索的子字符串;start代表搜索的起始位置,默认为可选

1;appertaposition表示在源字符串中搜索的子字符串,也是可选的,默认值为1;如果start为负,则

表示从右向左搜索。

返回值为:找到的字符串的位置。