随笔 - 11  文章 - 2  评论 - 1

随笔分类 -  sql

摘要:mysql_affected_rows -- 取得前一次 MySQL 操作所影响的记录行数mysql_num_rows -- 函数返回结果集中行的数目。config.php 1 $conn=mysql_connect('localhost','root','');//连接数据库 mysql_sele... 阅读全文
posted @ 2016-01-09 12:40 Double405 阅读(850) 评论(0) 推荐(0)
摘要:更改MySQL用户密码 方法1: 用SET PASSWORD命令 首先登录MySQL。 格式:mysql> set password for 用户名@localhost = password('新密码'); 例子:mysql> set password for root@localhost = pa 阅读全文
posted @ 2015-12-28 00:15 Double405 阅读(295) 评论(0) 推荐(0)
摘要:sql代码如下:统计重复的数据select MingCheng from tabShouFeiGongShi group by MingCheng having count(MingCheng) >= 2select * from (select *from tabShouFeiGongShiwhe... 阅读全文
posted @ 2015-07-08 12:03 Double405 阅读(2913) 评论(0) 推荐(0)