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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -