How to set value range to a column in mysql? -


i want set value range column of table.

example decimal decimal, decimal column should allow insert or update value between 0 30.

thanks in advance...!

as mysql still doesn't support check constraints, way in mysql trigger (for update , insert) checks new value of column , throws error if value outside valid range.


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -

c# - Binding attached property to IEnumerable -