|
|
|
Re: Use of UPPER function with wild cards [message #600465 is a reply to message #600461] |
Thu, 07 November 2013 00:27 |
John Watson
Messages: 8929 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
newbieinapps wrote on Thu, 07 November 2013 05:41Version:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
"CORE 11.2.0.3.0 Production"
TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
I already attached a screenshot. If you are too lazy to provide a test case, just give an example using the standard demo tables that everyone has, for instance,orclz> select * from emp where upper(ename) like upper('%LL%');
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
---------- ---------- --------- ---------- ------------------- ---------- ---------- ----------
7499 ALLEN SALESMAN 7698 1981-02-20 00:00:00 1600 300 30
7934 MILLER CLERK 7782 1982-01-23 00:00:00 1300 10
orclz>
|
|
|
Re: Use of UPPER function with wild cards [message #600470 is a reply to message #600465] |
Thu, 07 November 2013 01:59 |
|
newbieinapps
Messages: 13 Registered: August 2013
|
Junior Member |
|
|
CREATE TABLE XXTEST (NAME VARCHAR2(30), DESCRIPTION VARCHAR2(50));
insert into xxtest(name,description) values('AR','ESC Accounts Receivable IT Concurrent Processes');
insert into xxtest(name,description) values('AR','RSC IT Intransit Concurrent Processes');
insert into xxtest(name,description) values('AR','RSN IT Intransit Concurrent Processes');
insert into xxtest(name,description) values('AR','RSC Accounts Receivable IT Concurrent Processes');
SELECT * FROM XXTEST WHERE UPPER(description) LIKE UPPER('%IT Concurrent%');
Name Description
------ ------------------------------------------------------
AR ESC Accounts Receivable IT Concurrent Processes
AR RSC IT Intransit Concurrent Processes
AR RSN IT Intransit Concurrent Processes
AR RSC Accounts Receivable IT Concurrent Processes
SELECT * FROM XXTEST WHERE description LIKE '%IT Concurrent%';
Name Description
----- -------------------------------------------------------
AR ESC Accounts Receivable IT Concurrent Processes
AR RSC Accounts Receivable IT Concurrent Processes
When I use upper function, wild card doesn't work
|
|
|
|