Connecting Tech Pros Worldwide Help | Site Map

Using the wildcard character

Newbie
 
Join Date: Sep 2007
Posts: 31
#1: Oct 18 '07
Hello. I am a newbie to SQL 2000
I am trying to get this command to work
Expand|Select|Wrap|Line Numbers
  1.  
  2. select pan, expiry_date
  3. from dbo.pc_accounts_1_A 
  4. where pan = '63913801008%'
  5.  
It seems I am using the wrong wildcard(if that is the correct word). Please tell me what it should be.
Jim Doherty's Avatar
Moderator
 
Join Date: Aug 2007
Location: Derbyshire,England
Posts: 639
#2: Oct 18 '07

re: Using the wildcard character


Quote:

Originally Posted by ioshonowo

Hello. I am a newbie to SQL 2000
I am trying to get this command to work

Expand|Select|Wrap|Line Numbers
  1.  
  2. select pan, expiry_date
  3. from dbo.pc_accounts_1_A 
  4. where pan = '63913801008%'
  5.  
It seems I am using the wrong wildcard(if that is the correct word). Please tell me what it should be.


select pan, expiry_date
from dbo.pc_accounts_1_A
where pan Like '63913801008%'


Jim :)
Newbie
 
Join Date: Sep 2007
Posts: 31
#3: Oct 19 '07

re: Using the wildcard character


Thanks it is working.
Reply