Mysql 表新增字段 语法:alter table table_name add column column_name varchar(30) not null DEFAULT ''; 示例:alter table users add column created_at int(11) not null DEFAULT 0;0;`
Mysql 修改字段名
Mysql修改字段名 语法: alter table table_name change old_name new_name varchar(30) not null DEFAULT ''; 示例: alter table users change name user_name varchar(60) not null default '';’;`
PHP中url编码
我们在做一些api的时候,就会有用到url编码。 比如微信的接口,你在做网页授权的时候,其中就有个redirect_uri参数值就是个url,
PHP判断奇数偶数
PHP判断奇数偶数的两个方法 一. 数字跟2取模如果为0则为偶数,否则为奇数 函数示例: <?php function is_odd($num) { if ($num % 2 == 0) { return false; } else { return true; } } if (is_odd($a)) { echo $a.' is odd'; } else
svn: E200031: sqlite: attempt to write a readonly database
在使用svn的过程中,突然抱错,工作文件被锁定。 然后还报了这个错。 svn: E200031: sqlite: attempt to write a readonly database 在Linux下,没有切换用户导致了权限不够,但是没有意识