摘要:
//openresty安装 http://openresty.org/ brew updatebrew install pcre openssl ./configure --prefix=/usr/local/openresty --with-cc-opt="-I/usr/local/opt/ope 阅读全文
摘要:
不希望数据表中有重复记录的时候我们可以给表添加一个联合唯一索引例如,user表中有user_id,user_name两个字段,如果不希望有两条一摸一样的的user_id和user_name,我们可以给user表添加两个字段的联合唯一索引:alter table '表名' add unique ind 阅读全文