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.
我有一个表:dept 字段: mysql 表中的dept_code以php 形式。我需要重复验证。使用代码ALTER TABLE tableName ADD CONSTRAINT tb_UQ UNIQUE (area_code)它在数据库中运行良好。但是当单击提交按钮时,我需要在 php 表单中弹出一个警告框。
ALTER TABLE tableName ADD CONSTRAINT tb_UQ UNIQUE (area_code)