如果我想在表格中创建性别字段,如何确保我的数据库不接受除"M"或"F"之外的任何值?
$sqlCommand = "CREATE TABLE members (
id int(11) NOT NULL auto_increment,
...
...
...
...
gender
)";
Run Code Online (Sandbox Code Playgroud)
谢谢
为什么我的网站会设置两次Cookie?为"www.example.com"存储一组cookie,并为"example.com"存储相同的一组.