<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>小白教程 - MySQL</title>
    <link>https://www.xiaobai27.com/forum-38-1.html</link>
    <description>Latest 20 threads of MySQL</description>
    <copyright>Copyright(C) 小白教程</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Mon, 11 May 2026 14:01:17 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.xiaobai27.com/static/image/common/logo_88_31.gif</url>
      <title>小白教程</title>
      <link>https://www.xiaobai27.com/</link>
    </image>
    <item>
      <title>mysql小白求助关于最大值和最小值的问题</title>
      <link>https://www.xiaobai27.com/thread-387-1-1.html</link>
      <description><![CDATA[请问大家，mysql有办法实现，一个字段的值减去最小值，然后除以最大值与最小值的差，实现语句：SELECT (\'字段\'-MIN(\'字段\'))/(MAX(\'字段\')-MIN(\'字段\')) from 表   请问这个是哪里有错误吗？一直运行不出来
我单独select 最大值，最小值都没出错，但是只要字段-最小值就 ...]]></description>
      <category>MySQL</category>
      <author>以德报怨</author>
      <pubDate>Thu, 27 May 2021 01:34:19 +0000</pubDate>
    </item>
    <item>
      <title>mysql分析函数语法问题求教</title>
      <link>https://www.xiaobai27.com/thread-384-1-1.html</link>
      <description><![CDATA[结果报错：`qbi`.`sum`(`busi_table_sub_discount_num`) OVER ()\' must be an aggregate expression or appear in GROUP BY clause
就是说该分析函数的字段也必须是聚合函数或者groupby里的，但是，问题来了，sum（）难道不是聚合吗？

最后我是通过在套一层sum解决的， ...]]></description>
      <category>MySQL</category>
      <author>于林奇</author>
      <pubDate>Wed, 26 May 2021 11:21:38 +0000</pubDate>
    </item>
    <item>
      <title>求助,为什么会报错</title>
      <link>https://www.xiaobai27.com/thread-388-1-1.html</link>
      <description><![CDATA[select count(t.*) from (select id,sum(salary) from employees group by id) t;]]></description>
      <category>MySQL</category>
      <author>宓伦</author>
      <pubDate>Mon, 17 May 2021 01:27:18 +0000</pubDate>
    </item>
    <item>
      <title>阿里云服务器自建mysql5.7好慢</title>
      <link>https://www.xiaobai27.com/thread-386-1-1.html</link>
      <description><![CDATA[近日在阿里云自购了一台ecs服务器4核16G5M带宽，我在上面装了一个5.7的mysql,在本地用navicat连接的时候，（select  *  from table）全表检索一个8万数据的表的时候，耗时32s,数据库是还没上线的，无人使用，我看了cpu，内存，带宽，磁盘（我的数据是放在重新购置的一个 ...]]></description>
      <category>MySQL</category>
      <author>糯米困子</author>
      <pubDate>Thu, 13 May 2021 13:33:09 +0000</pubDate>
    </item>
    <item>
      <title>mysql，求教数据分组后取第一条的问题</title>
      <link>https://www.xiaobai27.com/thread-389-1-1.html</link>
      <description><![CDATA[现有表数据如下，需要按照column1,column2进行分组，然后取column4最新的一条，其中column4有最新时间相同的，这种情况下如何取其中一条呢？谢谢。

column1,column2,column3,column4
1,2,3,2019-06-01:00:00:00
1,2,4,2019-06-01:00:00:00
5,6,7,2019-06-01:00:03:00
8 ...]]></description>
      <category>MySQL</category>
      <author>张尧洪</author>
      <pubDate>Sat, 08 May 2021 03:19:31 +0000</pubDate>
    </item>
    <item>
      <title>mysql安装的时候初始化一直失败是什么原因</title>
      <link>https://www.xiaobai27.com/thread-391-1-1.html</link>
      <description><![CDATA[安装了好久了。就是不行]]></description>
      <category>MySQL</category>
      <author>俞挺</author>
      <pubDate>Mon, 03 May 2021 09:41:21 +0000</pubDate>
    </item>
    <item>
      <title>怎么用一句SQL语句创建一个函数</title>
      <link>https://www.xiaobai27.com/thread-383-1-1.html</link>
      <description><![CDATA[因为是客户端是通过软件在线更新数据库，所以要通过SQL语句执行，没办法导入一个SQL文件，类似添加表，添加字段之类的，都可以用SQL语句
但创建函数的内容有结构在那，类似换行什么的，有什么办法可以处理?

SET FOREIGN_KEY_CHECKS=0;

DROP PROCEDURE IF EXISTS `ugia ...]]></description>
      <category>MySQL</category>
      <author>江南老顽童</author>
      <pubDate>Mon, 26 Apr 2021 02:33:17 +0000</pubDate>
    </item>
    <item>
      <title>mysql 创建存储过程，求指教</title>
      <link>https://www.xiaobai27.com/thread-392-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>MySQL</category>
      <author>快乐因你而起</author>
      <pubDate>Fri, 23 Apr 2021 14:13:33 +0000</pubDate>
    </item>
    <item>
      <title>一张表的字段与另一张表字段的值关联</title>
      <link>https://www.xiaobai27.com/thread-385-1-1.html</link>
      <description><![CDATA[有两张表，A表，有字段：id,a1,a2,a3,......   ;B表，有字段： id，column，name。

怎么查甲、乙、丙对应的A表的值]]></description>
      <category>MySQL</category>
      <author>千百度丶</author>
      <pubDate>Tue, 20 Apr 2021 08:19:31 +0000</pubDate>
    </item>
    <item>
      <title>TPS低，交易响应时间反而高</title>
      <link>https://www.xiaobai27.com/thread-393-1-1.html</link>
      <description><![CDATA[最近在做业务的性能测试，交易涉及sql数量为200左右，在TPS]]></description>
      <category>MySQL</category>
      <author>牃骜不驯</author>
      <pubDate>Wed, 14 Apr 2021 08:15:45 +0000</pubDate>
    </item>
    <item>
      <title>求一条SQL语句</title>
      <link>https://www.xiaobai27.com/thread-390-1-1.html</link>
      <description><![CDATA[有一张user表 字段有 name 和 phone  

能不能一句SQL 把name和phone随机打乱啊

比如：
name    phone
小明      132
小张      138
小东      139

打乱后为:
name   phone
小明     139
小张     132
小东     138 
 ...]]></description>
      <category>MySQL</category>
      <author>一辈子棉被羽绒被蚕丝被</author>
      <pubDate>Mon, 12 Apr 2021 06:26:02 +0000</pubDate>
    </item>
    <item>
      <title>这种情况，MySQL索引为啥失效</title>
      <link>https://www.xiaobai27.com/thread-394-1-1.html</link>
      <description><![CDATA[create_time字段的索引使用正常，为什么查字段的时候会失效

mysql版本：5.6.16]]></description>
      <category>MySQL</category>
      <author>看尽红雨为谁系花铃</author>
      <pubDate>Mon, 05 Apr 2021 11:21:38 +0000</pubDate>
    </item>
    <item>
      <title>求助！c语言创建线程未运行问题</title>
      <link>https://www.xiaobai27.com/thread-395-1-1.html</link>
      <description><![CDATA[代码如下
使用MFC按钮功能调用StartCaiji（a）函数，呈现卡死状态，使用弹框发现创建第一个线程ThreadFunc并没有被执行，然后一直走下面的while（a）方法，在while（a）方法上sleep也不能让ThreadFunc函数执行，不知道要怎么解决，请问有什么解决办法吗？
 ...]]></description>
      <category>MySQL</category>
      <author>严涛</author>
      <pubDate>Tue, 23 Mar 2021 23:20:32 +0000</pubDate>
    </item>
    <item>
      <title>用c语言读取文本，一直都出错，到文件路径应该没问题的</title>
      <link>https://www.xiaobai27.com/thread-396-1-1.html</link>
      <description><![CDATA[哪位大神指点一下]]></description>
      <category>MySQL</category>
      <author>释心</author>
      <pubDate>Wed, 17 Mar 2021 01:34:38 +0000</pubDate>
    </item>
  </channel>
</rss>