随笔分类 -  SQL语句

mysql,sql语句
摘要:开启: 1、进入数据库 mysql -u数据库用户名 -p use mysql; 2、设置远程可任意IP链接 GRANT ALL PRIVILEGES ON *.* TO '数据库用户名'@'%' IDENTIFIED BY '数据库密码' WITH GRANT OPTION;flush privi 阅读全文
posted @ 2021-11-15 12:07 求必印 阅读(398) 评论(0) 推荐(0)
摘要:1.可查询数据库最大连接数 show variables like '%max_connections%'; 2.修改数据库最大连接数,最大限制上限为16384。 找到数据库配置文件my.cnf,在配置里将max_connections的值(若没有就新增)改为你想要的连接数量,例如: max_con 阅读全文
posted @ 2020-01-08 15:00 求必印 阅读(434) 评论(0) 推荐(0)
摘要:insert into ydcq_member_class (ClassId,signcount,UserId) select 64,2,`员工编号` from `学员名单` 阅读全文
posted @ 2017-10-12 15:59 求必印 阅读(227) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-08-14 10:42 求必印
摘要:UPDATE sxz_goods set sales_volume_base = round(rand() * 50) + 1 where sales_volume_base =0 ORDER BY goods_id ASC 阅读全文
posted @ 2015-07-24 00:36 求必印 阅读(1570) 评论(0) 推荐(0)
摘要:UPDATE ecs_goods set is_new = 0;UPDATE ecs_goods set is_new = 1 ORDER BY RAND() LIMIT 3 阅读全文
posted @ 2015-07-23 19:10 求必印 阅读(751) 评论(0) 推荐(0)
摘要:SELECT*fromjd_contentwhere景点简介like'%东城%' 阅读全文
posted @ 2014-10-23 16:10 求必印 阅读(479) 评论(0) 推荐(0)
摘要:alter table ylh_coupon add is_reg int default 0给数据表ylh_coupon 添加一个字段 is_reg,,整型,默认值为0 阅读全文
posted @ 2014-09-02 13:46 求必印 阅读(259) 评论(0) 推荐(0)
摘要:---恢复内容开始---例:给表名ecs_article中 content字段 的 /tianyuan 替换成 11加where条件:UPDATEecs_articlesetcontent=REPLACE(content,'/tianyuan','11')wherearticle_id=81不加wh... 阅读全文
posted @ 2014-05-13 09:26 求必印 阅读(10286) 评论(0) 推荐(0)