Connecting Tech Pros Worldwide Help | Site Map

what are wild cards incase of sql

Newbie
 
Join Date: Nov 2007
Posts: 1
#1: Nov 23 '07
hello everybody ..can anyone explain me what are wildcards and how they are used with stored procedures and why
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,497
#2: Nov 24 '07

re: what are wild cards incase of sql


Wild cards are used for pattern matching.
In oracle 2 wild cards are used .
%-----for zero or more characters
_------for 1 character only.
amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: Hyderabad, India
Posts: 2,192
#3: Nov 24 '07

re: what are wild cards incase of sql


Hi avimel,

Welcome to TDSN!!

Please make sure you follow POSTING GUIDELINES every time you post in this forum.

Thanks
MODERATOR
Newbie
 
Join Date: Oct 2007
Posts: 5
#4: Nov 24 '07

re: what are wild cards incase of sql


The LIKE condition allows you to use wildcards in the where clause of an SQL statement. This allows you to perform pattern matching. The LIKE condition can be used in any valid SQL statement - select, insert, update, or delete.

The patterns that you can choose from are:

% allows you to match any string of any length (including zero length)

_ allows you to match on a single character
amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: Hyderabad, India
Posts: 2,192
#5: Nov 26 '07

re: what are wild cards incase of sql


For More on Pattern Matching and Regular Expressions 10g, you can refer our forum articles:

REGEXP_LIKE
REGEXP_INSTR
REGEXP_REPLACE
REGEXP_SUBSTR
Reply