oracle 实现多字段匹配一个关键字查询语句:有两种方法(经测试,10g中不能用,11g才行): 第一种. select * from table where ('字段名1' ||'字段名2' ||...) like "%keyValue%"; 第二种:(1)如果是两个字段的话:select * from table where concat(字段名1,字段名2) like "%keyValue%";(2)如果是多个字段的话:select * from table…
****************************** 日期/时间 相关查询 ***************************** -- 1.获取当前月份的第一天 select trunc (sysdate, 'month') "First day of current month" from dual; -- 2.获取当前月份的最后一天 select trunc (last_day (sysdate)) "Last day of c…