Skip to content
Advertisement

SQL constraint minvalue / maxvalue?

Is there a way to set a SQL constraint for a numeric field that min value should be 1234 and max value should be 4523?

Advertisement

Answer

SQL Server syntax for the check constraint:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement