<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Mysql on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/mysql/</link><description>Recent content in Mysql on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 08 Sep 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/mysql/index.xml" rel="self" type="application/rss+xml"/><item><title>SQL 中的 CTE（公用表表达式）详解：从基础语法到递归实战</title><link>https://leafcxy.github.io/posts/2026/09/sql-cte-syntax/</link><pubDate>Tue, 08 Sep 2026 10:00:00 +0800</pubDate><guid>https://leafcxy.github.io/posts/2026/09/sql-cte-syntax/</guid><description>&lt;p&gt;写复杂查询的时候，你有没有经历过这些瞬间：一个查询里套了三层子查询，括号一层套一层，改一个条件要数半天括号；同一个中间结果在一条 SQL 里要用两次，只能复制粘贴两遍；想表达&amp;quot;先取 A，再基于 A 算 B，最后基于 B 出结果&amp;quot;，却不得不把它们全部硬挤进一个 SELECT 里。&lt;/p&gt;</description></item></channel></rss>