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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -