oracle select详解

来源:互联网 发布:手机淘宝如何刷新秒杀 编辑:程序博客网 时间:2024/05/22 08:41

oracle 实现多字段匹配一个关键字查询语句

有两种方法:


第一种.select * from table where ('字段名1' ||'字段名2' ||...) like "%keyValue%";


第二种:(1)如果是两个字段的话:

select * from table where concat(字段名1,字段名2) like "%keyValue%";

(2)如果是多个字段的话:

select * from table where concat(concat(concat(concat(字段名1,字段名2),字段名3)字段名4)...) like "%keyValue%";


原创粉丝点击