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 set AutoIncrement Property of a field ?
The disk is offline because of policy set by an administrator
Is there any Chinese writing PAD driver source code for windows and mac?
How to read field names from an XSD file.
Replacing OCX Controls used in Microsoft Access 2007
How do I create a DLL for my VB.NET 2008 application?
How to Programmatically Add Metadata to Windows Files
Concurrency violation in Access database
Magic Table
Hide Datasheet View Using Docmd.Openquery