mysql
文章平均质量分 80
nofacemen
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql8 Public Key Retrieval is not allowed异常
异常原因: mysql 8.0 修改了默认的加密的插件方式,8.0之前默认mysql_native_password,8.0中默认值为sha256_password,需要配置密钥 [mysqld] sha256_password_private_key_path=/usr/local/mysql/myprivkey.pem sha256_password_public_key_path=/usr/local/mysql/mypubkey.pem 如果用户使用了 sha256_password 认证,密码在原创 2022-03-15 14:40:34 · 2075 阅读 · 0 评论 -
mysql 自增长变量
select @i:=@i+1原创 2020-08-19 12:51:32 · 637 阅读 · 0 评论 -
mysql可重复读现象及原理分析
https://www.cnblogs.com/yuzhuang/p/11585774.html原创 2020-04-13 13:38:41 · 305 阅读 · 0 评论 -
Mysql中多表删除
Mysql中多表删除 1、从MySQL数据表A中把那些id值在数据表B里有匹配的记录全删除掉 DELETE t2 FROM A t1,B t2 WHERE t1.id = t2.id DELETE FROM t2 USING A t1,B t2 WHERE t1.id = t2.id 【USING 的用法: using()用于两张表的join查询,要求using()指定的列在两个表中均存在,并使...转载 2020-03-12 11:40:23 · 435 阅读 · 0 评论 -
mysql 条件字符串和数字对比应用
1,mysql 条件比较有数字类型,会把另一个非数字类型转换未数字类型,不能转换返回0原创 2019-11-18 16:38:34 · 219 阅读 · 0 评论 -
mysql 逗号(,)分隔的值的简单应用
表: sql中的简单应用 select *, max(company_id) from b2f_order_ordrtype_constructtype tmp where company_id in (0, 1) and order_type = ‘mea-inst’ and take_type = 2 and ‘090’ in (order_status) ...原创 2019-05-23 14:06:52 · 4702 阅读 · 0 评论 -
mysql 根据带点的(.)别名排序
select order_id as `xp.test_id` from b2f_orders order by `xp.test_id` desc 用反引号将别名包起来即可原创 2019-07-08 13:38:21 · 900 阅读 · 0 评论
分享