Skip to Content
Custom Search

Wildcard character percent in DB2

 

 
 
 
 
Wildcard character % in DB2
 
 
If you wish to fetch a row from a DB2 table and you do not know what is the exact value
in a column then you can use wild card character % (percent wild card character)
 
Wild card character % can be used as a substitue for n number of charachters.
 
For example you are looking for employees whos first name begins with JA then you can write the following query
 
; ; ; ;
SELECT * FROM EMP_TABLE WHERE FNAME LIKE 'JA%'

Comments

Post new comment

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Who's online

There are currently 0 users and 35 guests online.
Dr. Radut | page