阅读背景:

一个约束,以防止在MySQL中插入空字符串

来源:互联网 

In this question I learned how to prevent the insert of a NULL value. But, unfortunately, an empty string is being inserted anyway. Apart from preventing this on the PHP side, I'd like to use something like a database constraint to prevent this. Of course a check on the application side is necessary, but I'd like it to be on both sides. I learned how to prevent the i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: