
mysql
wo-wo-wo
互联网SaaS平台,995搬砖
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql 分区sql脚本
-- 根据key分10个区 alter table table_name partition by key(filed_name) partitions 10; -- 删除Key分区 ALTER TABLE table_name remove PARTITIONING; -- 想知更多请阅读Mysql官方文档:https://dev.mysql.com/doc/refman/8.0/en/p...原创 2019-11-11 12:13:34 · 292 阅读 · 0 评论 -
mysql 5.7 使用group by 报错 ,是因为在5.7中新加入的新的特性造成,现解决方案如下:
SELECT @@GLOBAL.sql_mode set sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' mac 通过客户端修改 亲自测试有效,...原创 2018-11-08 10:33:54 · 369 阅读 · 0 评论 -
select 多字段批量查询 和 update 多字段批量更新
-- 多字段批量更新 update table_name set field_name='hello world' where (field_1,field_2)in(('xxxxxxx','xxxxxxx')) --多字段批量查询 select * from table_name where (field_1,field_2)in(('xxxxxxx','xxxxxxxx')) ...原创 2019-08-01 10:07:36 · 1592 阅读 · 0 评论