Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

How to add a check constraint to a column to accept values in the following format: "L214"?

$
0
0

All I could come up with is this:

check (column_name like '____');

But That doesn't enforce the first character to be a letter and the other three to be numbers.



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>