
数据库
取壳羊
何处碧桃榭 满溪流水稥
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数据库中间件 Cetus 2.3.6 读写分离版
搭建数据库主从集群并且初始化数据库192.168.10.243 #cetus192.168.10.250 #M192.168.10.251 #S#开启延迟检测需要创建心跳表create database if not exists proxy_heart_beat; use proxy_heart_beat; CREATE TABLE if not exists tb_h...原创 2019-12-16 08:52:59 · 218 阅读 · 0 评论 -
create select
sqlserver创建新表和数据select * into newtable from oldtable where col=xxx插入数据insert into table1 (col1,col2) select (col1,col2) from table2条件成功复制表结构和数据 不成功只是复制表结构转载 2017-04-18 18:15:36 · 920 阅读 · 0 评论 -
MySQL 全日志 general_log
showglobalvariableslike'%general%';set global general_log=on;set global log_output=table;select * from mysql. general_log\G;altertablegeneral_logengine=myisam;set global gene...原创 2019-12-15 21:41:57 · 359 阅读 · 0 评论 -
MySQL WITH ROLLUP
SELECT IFNULL(Sdate,"总计") AS Sdate ,COUNT(DISTINCT orderDeputyID) AS '下单数',SUM(ticketCount) AS '票张数',COUNT(DISTINCT payorderDeputyID ) '支付订单数',SUM(payticketCount) '支付票单数',COUNT(DISTINCT原创 2017-07-25 15:54:43 · 466 阅读 · 0 评论 -
MySQL GROUP_CONCAT
多行转列SELECT id,GROUP_CONCAT(CONCAT_WS(',',id,num,sid,NAME) ORDER BY id DESC SEPARATOR '. ') FROM T_group_concat GROUP BY id;原创 2017-07-25 16:26:53 · 414 阅读 · 0 评论