Microsoft
Software
Hardware
Network
Question : SQL Server Query based on String Format
Hello, I am not sure how to search for this on Google so I thought I would try my luck here.
Is there a way in SQL Server to perform a query based on the format of a string?
What I am looking for is records that match the following format:
##-######-#, an actual value will look something like this 13-I08013-1.
Any help will be appreciated!
Robert
Answer : SQL Server Query based on String Format
I think this should work:
SELECT * FROM yourtable WHERE yourcolumn LIKE '__-______-_'
% represents any number of characters, _ represents a single character.
L
Random Solutions
Filter a Report to only show certain data contain within a field
Generating Unicode Characters in VFP 9
CHKDSK "processing USN bytes" at length. Should I just leave this to finish?
Link SQL Table using DSN or DSNless
Testing Outlook Anywhere
ASP.NET-created Excel files don't work properly in IE 8
Unable to log a Guid Type into SQL Using log4net AdoNetAppender
Rotating text in label control
Read vertical data
Access 2007 links to SQL Server 2000 tables not updateable