- 博客(3)
- 收藏
- 关注
转载 MySQL的一些基本操作
1、修改已经存在表的字段属性 自增长:alter table tab_name change tb_id tb_id int not null primary key auto_increment; 添加字段设置主键:alter table tab_name add new_fieldid int...,add primary key(new fieldid); 删除字段:alte...
2016-01-19 18:50:00 81
转载 关于PHP数组处理的效率问题,并不是用函数就好!
贴代码 $arr=array();$stime1=gettimeofday(true);for($i=0;$i<100000;$i++){ array_push($arr, $i); }$etime1=gettimeofday(true);echo "array_push耗时".($etime1-$stime1)."<br />"; $arr=array...
2016-01-14 15:37:00 102
转载 microtime()等时间函数函数简记
microtime()获取当前的unix时间戳和微妙数,如果带上参数(true),会返回一个浮点数,在支持gettimeofday()函数的系统上可用。 举个栗子: 获取当前时间戳可以使用如下方式: $ntime=gettimeofday(true); $ntime=microtime(true); $stime=expload(" ",micro...
2016-01-14 15:11:00 128
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人