IT Community - Software Programming, Web Development and Technical Support

What is the wildcard character in SQL?

This is a discussion on What is the wildcard character in SQL? within the Database Support forums, part of the Web Development category; What is the wildcard character in SQL? Let’s say you want to query database with LIKE for all employees ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 04-09-2008, 07:38 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Question What is the wildcard character in SQL?

What is the wildcard character in SQL?

Let’s say you want to query database with LIKE for all employees whose name starts with La?
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-09-2008, 08:28 PM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 200
krishnakumar is on a distinguished road
Smile Re: What is the wildcard character in SQL?

hi vinoth,

I couldnt able to understand, can u explain briefly about wild card character in sql. Just now i heard about wildcard. If u have any sample query means, share with me.
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-09-2008, 08:44 PM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 328
KiruthikaSambandam is on a distinguished road
Default Re: What is the wildcard character in SQL?

Hi,

The following example returns all the names of people in the Emp table of Test that start with La.

USE Test;
GO
SELECT Name
FROM Emp
WHERE Name LIKE 'La%';
GO

Thanks
Kiruthika
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-10-2008, 10:50 PM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Wink Re: What is the wildcard character in SQL?

Hey all,

The wildcard character is %, the proper query with LIKE would involve ‘La%’.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
openSTA and end of file character cindrella Software Testing 0 02-29-2008 10:12 AM
How to get ASCII Value of a first character in a string in php? $enthil PHP Programming 1 01-06-2008 10:48 PM
Character Embedding geoblow Flash Actionscript Programming 0 09-18-2007 12:11 AM
NULL character within a string vigneshgets C# Programming 1 08-01-2007 04:07 AM
Escape Character in MySql raj Database Support 6 07-13-2007 04:27 AM


All times are GMT -7. The time now is 08:13 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0