create table users(
alias varchar(20) not null primary key default '',
active enum('1','0') not null default '1',
port int(11) NOT NULL default '0'
);在上面建的数据库里面有emnu类型的,
然后在做查询时候select * from users where WHERE alias = '%1' AND IS active
问题关键是在AND IS active 这一句怎么解释,我运行怎么不能通过。
还有alias = '%1' 这一句是做匹配alias结尾是1的,这样可以吗?
麻烦大家来看看。