随笔分类 - sql
摘要:mysql_affected_rows -- 取得前一次 MySQL 操作所影响的记录行数mysql_num_rows -- 函数返回结果集中行的数目。config.php 1 $conn=mysql_connect('localhost','root','');//连接数据库 mysql_sele...
阅读全文
摘要:更改MySQL用户密码 方法1: 用SET PASSWORD命令 首先登录MySQL。 格式:mysql> set password for 用户名@localhost = password('新密码'); 例子:mysql> set password for root@localhost = pa
阅读全文
摘要:sql代码如下:统计重复的数据select MingCheng from tabShouFeiGongShi group by MingCheng having count(MingCheng) >= 2select * from (select *from tabShouFeiGongShiwhe...
阅读全文

浙公网安备 33010602011771号