.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson
Eminent IT

Home >> Articles >> DataBase >> Post New Resource Bookmark and Share   

 Subscribe to Articles


Posted By:Vilas Gite       Posted Date: June 21, 2011    Points: 200    Category: DataBase    URL: http://www.dotnetspark.com  

SQL SERVER 2005 : Using special character s (Wild Characters) in LIKE and NOT LIKE operator.

Special Characters are used for finding specific character string using LIKE operator in SQL SERVER.

Let's start to create database - trail

Table - Faculty

Insert records

Select * from Faculty

Shows all records within table

LIKE 'V[%]' : Search string start from v character.

LIKE '[_]n' : Search string start from any character, but second character start from 'a' character.

LIKE 'ra[d]' : Search string start from specific pattern, start from 'ra' but after 'ra' must 'd' character.

NOT LIKE 'ra[d]' : Search string start from specific pattern, No start from 'ra' and after 'ra' not 'd' character in string.

There are several patterns for searching string.

 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend