<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>mysql - 分类 - cfanzp学习笔记</title>
    <link>https://cfanzp008.github.io/categories/mysql/</link>
    <description>mysql - 分类 - cfanzp学习笔记</description>
    <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>cfan.zp@qq.com (cfanzp)</managingEditor>
      <webMaster>cfan.zp@qq.com (cfanzp)</webMaster><lastBuildDate>Thu, 07 Dec 2023 21:06:57 &#43;0800</lastBuildDate><atom:link href="https://cfanzp008.github.io/categories/mysql/" rel="self" type="application/rss+xml" /><item>
  <title>mysql数据包分析</title>
  <link>https://cfanzp008.github.io/mysql-packet/</link>
  <pubDate>Thu, 07 Dec 2023 21:06:57 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/mysql-packet/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>mysql修改编码支持utf8mb4</title>
  <link>https://cfanzp008.github.io/mysql-charsets/</link>
  <pubDate>Fri, 21 Apr 2023 21:54:11 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/mysql-charsets/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>mysql配置外网访问权限</title>
  <link>https://cfanzp008.github.io/mysql-login/</link>
  <pubDate>Fri, 21 Apr 2023 21:46:17 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/mysql-login/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>ubuntu安装mysql</title>
  <link>https://cfanzp008.github.io/ubuntu-mysql/</link>
  <pubDate>Fri, 21 Apr 2023 20:48:15 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/ubuntu-mysql/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>mysql基础</title>
  <link>https://cfanzp008.github.io/mysql-question/</link>
  <pubDate>Wed, 01 Mar 2023 16:41:13 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/mysql-question/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>mysql FAQ</title>
  <link>https://cfanzp008.github.io/mysql-faq/</link>
  <pubDate>Wed, 15 Feb 2023 14:58:23 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/mysql-faq/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>centos 安装使用mysqldiff,mysqldbcompare</title>
  <link>https://cfanzp008.github.io/mysqldiff/</link>
  <pubDate>Wed, 15 Feb 2023 13:04:49 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/mysqldiff/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>Docker安装运行Mysql</title>
  <link>https://cfanzp008.github.io/docker-mysql/</link>
  <pubDate>Thu, 09 Feb 2023 11:22:02 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/docker-mysql/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>如何在Ubuntu20.04上安装Mysql-Workbench?</title>
  <link>https://cfanzp008.github.io/ubuntu-mysql-workbench/</link>
  <pubDate>Tue, 20 Dec 2022 10:37:35 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/ubuntu-mysql-workbench/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>mysql存储过程</title>
  <link>https://cfanzp008.github.io/mysql-procedure/</link>
  <pubDate>Tue, 23 Aug 2022 09:22:30 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/mysql-procedure/</guid>
  <description><![CDATA[mysql存储过程 FAQ 如何创建存储过程? 下面是一个创建存储过程的demo:
存储过程名为:p_login 存储过程有3个参数:a_platform,a_account,a_password 1 2 3 4 5 6 7 8 9 10 CREATE DEFINER=`root`@`%` PROCEDURE `p_login`(in a_platform int, in a_account varchar(64), in a_password varchar(32)) begin SELECT *,userid as uid FROM tb_account WHERE account=a_account AND platform=a_platform AND `password`=a_password AND nullity = &#39;0&#39; AND android = &#39;0&#39;; end 如何调用存储过程? 1 CALL p_login(1,&#34;aaa&#34;,&#34;password&#34;); 存储过程中常用的函数有哪些？ 获取当前时间搓 1 current_timestamp() 获取时间 1 NOW() 获取当前日期 1 curdate() 获取最后一个标识值 在一条 INSERT、SELECT INTO 或大容量复制语句完成后，@@IDENTITY 中包含语句生成的最后一个标识值 1 select @@IDENTITY 获取今天，昨天，前天的当前时间 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 CREATE DEFINER=`root`@`%` PROCEDURE `p_demo_get_daily_login_report`(IN `a_step` int) BEGIN DECLARE start_day TIMESTAMP; DECLARE end_day TIMESTAMP; # a_step=0 今天 # a_step=1 昨天 # a_step=2 前天 SET start_day = (CAST(SYSDATE()AS DATE) - INTERVAL a_step DAY); SET end_day = (CAST(SYSDATE()AS DATE) + INTERVAL 1 DAY - INTERVAL a_step DAY); select a.]]></description>
</item>
</channel>
</rss>
