2017年6月19日

mysql批量导出表(限制100条数据)

摘要: > $val.sql"; shell_exec($cmd); } } } mysql_close($con); ?> 阅读全文

posted @ 2017-06-19 14:14 coding-farmer 阅读(1157) 评论(0) 推荐(0) 编辑

2017年6月14日

mysql 批量删除表

摘要: 阅读全文

posted @ 2017-06-14 19:25 coding-farmer 阅读(201) 评论(0) 推荐(0) 编辑

2017年6月10日

mysql获取600000条数据,存入excel

摘要: 列名'; echo $html; static $i = 600000; static $j = 0; if ($newcon) { if (mysql_select_db("db", $newcon)) { for($i;$i'; } $j++; if($j> 20){die ('ok');} ... 阅读全文

posted @ 2017-06-10 15:07 coding-farmer 阅读(226) 评论(0) 推荐(0) 编辑

2017年6月6日

thinkphp笔记

摘要: 1,thinkphp框架修改值方法$info = D('biao')->where('lie = '.$bianliang)->setfield('lie',$bianliang); 2,db操作log ThinkPHP/Library/Think/Db.class.php 中update和dele 阅读全文

posted @ 2017-06-06 11:20 coding-farmer 阅读(160) 评论(0) 推荐(0) 编辑

2017年6月5日

pgsql操作

摘要: 一,安装 1,centos安装 2,ubuntu安装 二,命令行操作 1,\h 命令列出所有的 SQL 命令信息 2,\h alter 命令列出所有 ALTER 命令相关的帮助信息。 3,\? 命令列出 PostgreSQL 元命令的帮助信息。 4, 列出表: \dt 切换数据库,相当于MySQL的 阅读全文

posted @ 2017-06-05 19:29 coding-farmer 阅读(1323) 评论(0) 推荐(0) 编辑

2017年5月23日

git常用命令

摘要: git clone https://xxx@bitbucket.org/.git git status git diff git st . git pull git commit -a -m "add telecom css and res" git push -u origin master gi 阅读全文

posted @ 2017-05-23 23:44 coding-farmer 阅读(96) 评论(0) 推荐(0) 编辑

thinkphp url_model 不生效

摘要: 阅读全文

posted @ 2017-05-23 23:41 coding-farmer 阅读(318) 评论(0) 推荐(0) 编辑

redis

摘要: 1,php操作redis function updateRedisCount($key, $count) { $redis = new Redis(); $rcon = $redis->pconnect(REDIS_HOST, REDIS_PORT_3); if ($rcon) { if (!$re 阅读全文

posted @ 2017-05-23 23:36 coding-farmer 阅读(171) 评论(0) 推荐(0) 编辑

linux常用操作

摘要: 常用操作 1,防火墙 firewall-cmd --permanent --add-port=5432/tcp firewall-cmd --permanent --add-port=80/tcp firewall-cmd --reload 2,共享盘失效 sudo service smbd res 阅读全文

posted @ 2017-05-23 23:33 coding-farmer 阅读(110) 评论(0) 推荐(0) 编辑

数据库安装

摘要: 环境配置 阅读全文

posted @ 2017-05-23 23:26 coding-farmer 阅读(199) 评论(0) 推荐(0) 编辑

导航