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
Help, I accidently deleted "AutoExec.bat" from Command Prompt.
How do I find what updates have been applied to a computer
Microsoft Access Maximum Objects is 32768. What objects are counted?
Vista Home wireless adapter connecting only with limitted access
Drive visible in Disk Management, but not in My Computer
Index on a table
MS Access VBA SQL query with varables - is it possible?
Set Sheets
Move Sharepoint List From One Server To Another
SQLNCLI for linked server returned message "Invalid authorization specification"