阅读背景:

如何在SQLite / MySQL中限制列值

来源:互联网 

I would like to restrict a column value in a SQL table. For example the column values can only be "car" or "bike" or "van". My question is how do you achieve this in SQL, and is it a good idea to do this on the DB side or should i let the application restrict the input.I would like to restrict a column value in a SQ




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

分享到: