ALTER TABLE Normarashod MODIFY nomoper int CHECK (VALUE > 0) ; Why does an error occur if I use CHECK (VALUE> 0)? It works without it. How to fix?
ALTER TABLE Normarashod MODIFY nomoper int CHECK (VALUE > 0) ; Why does an error occur if I use CHECK (VALUE> 0)? It works without it. How to fix?
And if so?
ALTER TABLE Normarashod MODIFY nomoper int, ADD CHECK (VALUE > 0) ; If I understand correctly, do you need to change the field type? If yes, then such a request will help you:
ALTER TABLE Normarashod CHANGE nomoper nomoper VARCHAR(100) Edit the table "Normarashod", change the field "nomoper" to "nomoper" (without renaming) with the new type "VARCHAR (100)"
Source: https://ru.stackoverflow.com/questions/113802/
All Articles
ADD CHECKandADD CONSTRAINT name CHECK, but adds nothing to the structure. Dummy. - KiTE