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
Add/Remove programs display has large gap in listling ?
How do I replace #N/A if it is returned in a formula? (not Vlookup)
What workarounds are available to paste an image into a sharepoint list form
UNC Share as an IIS Virtuial Directory
How do I return multiple files in Excel VBA using GetOpenFilename?
How many cores does Microsoft SBS 2003 support?
"constant too big" error
Extract data all in one line
Mask URL ASP .net
is there a difference between C++ in visual studio 2008" and "visual C++ 2008"