Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
符号なしフィールドと同様ですが、負の数の場合のみです。
私はただ興味があります。
before-insertこれは、トリガー を使用して実行できます。
before-insert
CREATE DEFINER=`root`@`localhost` trigger triggerName BEFORE INSERT ON tableA FOR EACH ROW BEGIN IF(value > 0) THEN STOP ACTION END IF;
挿入、更新、選択のたびに、符号なし整数とマイナス記号を使用できます。