<?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>数据库 on phjhq's Blog</title><link>https://houjinghao123.github.io/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/</link><description>Recent content in 数据库 on phjhq's Blog</description><image><title>phjhq's Blog</title><url>https://i.postimg.cc/7hwBy7VS/calcr.png</url><link>https://i.postimg.cc/7hwBy7VS/calcr.png</link></image><generator>Hugo -- 0.134.1</generator><language>zh</language><copyright>©2024 phjhq&amp;rsquo;s Blog</copyright><lastBuildDate>Sun, 29 Sep 2024 17:34:22 +0800</lastBuildDate><atom:link href="https://houjinghao123.github.io/tags/%E6%95%B0%E6%8D%AE%E5%BA%93/index.xml" rel="self" type="application/rss+xml"/><item><title>MySQL触发器</title><link>https://houjinghao123.github.io/posts/mysql%E8%A7%A6%E5%8F%91%E5%99%A8/</link><pubDate>Sun, 29 Sep 2024 17:34:22 +0800</pubDate><guid>https://houjinghao123.github.io/posts/mysql%E8%A7%A6%E5%8F%91%E5%99%A8/</guid><description>&lt;h1 id="触发器">&lt;strong>触发器&lt;/strong>&lt;/h1>
&lt;h2 id="1介绍">&lt;strong>1.介绍&lt;/strong>&lt;/h2>
&lt;p>触发器是与表有关的数据库对象，指在insert/update/delete之前(BEFORE)或之后(AFTER)，触发并执行触发器中定义的SQL语句集合。&lt;/p></description></item><item><title>MySQL视图和存储过程</title><link>https://houjinghao123.github.io/posts/%E8%A7%86%E5%9B%BE%E5%92%8C%E5%AD%98%E5%82%A8%E8%BF%87%E7%A8%8B/</link><pubDate>Sun, 29 Sep 2024 15:21:23 +0800</pubDate><guid>https://houjinghao123.github.io/posts/%E8%A7%86%E5%9B%BE%E5%92%8C%E5%AD%98%E5%82%A8%E8%BF%87%E7%A8%8B/</guid><description>&lt;h1 id="视图-存储过程">&lt;strong>视图-存储过程&lt;/strong>&lt;/h1>
&lt;h2 id="一视图">&lt;strong>一、视图&lt;/strong>&lt;/h2>
&lt;h3 id="11介绍">&lt;strong>1.1介绍&lt;/strong>&lt;/h3>
&lt;p>视图（View）是一种虚拟存在的表。视图中的数据并不在数据库中实际存在，行和列数据来自定义视图的查询中使用的表，并且是在使用视图时动态生成的。&lt;/p></description></item><item><title>SQL优化</title><link>https://houjinghao123.github.io/posts/sql%E4%BC%98%E5%8C%96/</link><pubDate>Fri, 27 Sep 2024 09:13:15 +0800</pubDate><guid>https://houjinghao123.github.io/posts/sql%E4%BC%98%E5%8C%96/</guid><description>&lt;h1 id="sql优化">&lt;strong>SQL优化&lt;/strong>&lt;/h1>
&lt;h2 id="插入数据">&lt;strong>插入数据&lt;/strong>&lt;/h2>
&lt;h3 id="insert">&lt;strong>insert&lt;/strong>&lt;/h3>
&lt;p>假设我们需要插入大量数据，那么有哪些方法呢？&lt;/p>
&lt;ul>
&lt;li>批量插入数据&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-mysql" data-lang="mysql">&lt;span class="line">&lt;span class="ln">1&lt;/span>&lt;span class="cl">&lt;span class="k">INSERT&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">INTO&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">tb_test&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">values&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s1">&amp;#39;Tom&amp;#39;&lt;/span>&lt;span class="p">),(&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s1">&amp;#39;Cat&amp;#39;&lt;/span>&lt;span class="p">),(&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="s1">&amp;#39;Jerry&amp;#39;&lt;/span>&lt;span class="p">);&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pr</description></item><item><title>Mysql存储引擎</title><link>https://houjinghao123.github.io/posts/mysql%E5%BC%95%E6%93%8E%E4%BB%8B%E7%BB%8D/</link><pubDate>Sat, 21 Sep 2024 14:04:10 +0800</pubDate><guid>https://houjinghao123.github.io/posts/mysql%E5%BC%95%E6%93%8E%E4%BB%8B%E7%BB%8D/</guid><description>&lt;h1 id="一mysql存储引擎">&lt;strong>一、Mysql存储引擎&lt;/strong>&lt;/h1>
&lt;h2 id="1mysql的体系结构">&lt;strong>1.Mysql的体系结构&lt;/strong>&lt;/h2>
&lt;p>&lt;img loading="lazy" src="https://i.postimg.cc/MpV3xV4W/screenshot-16.png" alt="" />
&lt;/p>
&lt;ol>
&lt;li>连接层&lt;/li>
&lt;li>服务层&lt;/li>
&lt;li>引擎层&lt;/li>
&lt;li>存储层&lt;/li>
&lt;/ol>
&lt;h2 id="2存储引擎介绍">&lt;strong>2.存储引擎介绍&lt;/strong>&lt;/h2>
&lt;p>存储引擎就是存储数据、建立索引、更新/查询数据等技术的实现方式 。存储引擎是基于表的，而不是基于库的，&lt;code>所以存储引擎也可被称为表类型&lt;/code> 。我们可以在创建表的时候，来指定选择的存储引擎，如果没有指定将自动选择默认的存储引擎(InnoDB)。&lt;/p></description></item><item><title>Mysql事务</title><link>https://houjinghao123.github.io/posts/mysql%E4%BA%8B%E5%8A%A1/</link><pubDate>Fri, 20 Sep 2024 14:04:10 +0800</pubDate><guid>https://houjinghao123.github.io/posts/mysql%E4%BA%8B%E5%8A%A1/</guid><description>&lt;h1 id="事务">事务&lt;/h1>
&lt;p>事务 是一组操作的集合，它是一个不可分割的工作单位，事务会把所有的操作作为一个整体一起向系统提交或撤销操作请求，即这些操作要么同时成功，要么同时失败。&lt;/p></description></item></channel></rss>