---
title: "[记录]mysql按周分类汇总"
author: "cheng888qi"
date: "2010-11-04T17:47:13Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2010-11-04T18:31:35Z"
id: 803130
url: "https://cqjava.iteye.com/blog/803130"
---

select  distinct DATE\_FORMAT(per\_time, '%X-%V')  from performance\_l1\_table;

 

select  distinct DATE\_FORMAT(per\_time, '%x-%v')  from performance\_l1\_table;

 

先做个记录，有时间再整个例子