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
How to restrict the user to access only one Document Library other than accessing complete site?
Trying to understand Excel formula for sample size, sat confidence level and probability
Getting error message "The server tag is not well formed" on the line where I have a hyperlink control in my datagrid
the vfp odbc ole db provider give me an error when i run in windows seven
is there a procedure view button in vs 2008 like there is in vb6
REST web service in C#
Excel Count w/ Multiple Criteria on another Sheet
power user to reset Admin password
Null fields in Microsoft Access 2007 Query
T-SQL merge two XML documents