<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Attic - database</title>
    <link>https://tingyulou.top/forum.php?mod=forumdisplay&amp;fid=52</link>
    <description>Latest 20 threads of database</description>
    <copyright>Copyright(C) Attic</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 20 Jun 2026 20:55:37 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://tingyulou.top/static/image/common/logo_88_31.gif</url>
      <title>Attic</title>
      <link>https://tingyulou.top/</link>
    </image>
    <item>
      <title>连接数据库报错</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=299</link>
      <description><![CDATA[地址中配置了useSSL=true 改成了false，可以通过，是没有正确配置SSL证书]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Mon, 18 Aug 2025 02:25:35 +0000</pubDate>
    </item>
    <item>
      <title>mybatis--choose-when-then</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=291</link>
      <description><![CDATA[&amp;lt;if test=&amp;quot;@Ognl@isNotEmpty(enName)&amp;quot;&amp;gt;
            &amp;lt;choose&amp;gt;
                &amp;lt;when test=&amp;quot;@Ognl@isNotEmpty(exactMatchZhFlag) and exactMatchZhFlag ==\'1\' &amp;quot;&amp;gt;
                    and a.en_name=#{enName}
]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Tue, 22 Jul 2025 07:55:44 +0000</pubDate>
    </item>
    <item>
      <title>mac中nacos启动报错</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=287</link>
      <description><![CDATA[org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name \'capacityManagementAspect\' defined in URL [jar:nested:/Users/sunla/Documents/tools/nacos/target/nacos-server.jar/!BOOT-INF/lib/nacos-config-3.0.2.jar!/c ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Wed, 09 Jul 2025 05:20:29 +0000</pubDate>
    </item>
    <item>
      <title>一个分组sql的解析-from Qwen</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=279</link>
      <description><![CDATA[你提供的 SQL 语句是一个较为复杂的查询，涉及多个表的连接（JOIN）、分组（GROUP BY）、聚合函数（GROUP_CONCAT、COUNT）以及条件筛选。下面我将从几个方面来解析并检查这个 SQL：

✅ 1. SQL 功能分析
查询目标：

查询 td_manual_tech_tasks 表中 grp_flg = \'SP-SKY\' ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Tue, 10 Jun 2025 02:04:47 +0000</pubDate>
    </item>
    <item>
      <title>seata</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=278</link>
      <description><![CDATA[分布式事务解决分布式数据库之间的一致性问题
官网
https://seata.apache.org/zh-cn/docs/overview/what-is-seata


a-&amp;gt;b-&amp;gt;c-d
这种长事务链条模式，适合使用saga模式


TA 全靠数据库的ACID控制，对代码的侵入性小,要获取XID
TCC模式，靠业务代码控制，对代码的侵入性 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Mon, 02 Jun 2025 06:55:24 +0000</pubDate>
    </item>
    <item>
      <title>数据库事务专场</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=277</link>
      <description><![CDATA[操作指令：
查看数据库版本：select version();
查看隔离级别：select @@session.tx_isolation;
SHOW VARIABLES LIKE \'transaction_isolation\';
修改隔离级别：set @@session.tx_isolation=参数;
SET SESSION transaction_isolation=\'REPEATABLE-READ\';
可选 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Fri, 30 May 2025 07:46:46 +0000</pubDate>
    </item>
    <item>
      <title>java.sql.SQLSyntaxErrorException: Unknown column \'grp_flg\' in \'where clause\'</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=268</link>
      <description><![CDATA[SELECT COUNT(*) AS total FROM td_eval_made_tools WHERE (grp_flg = ? AND DATA_STATUS = ?)
Cause: java.sql.SQLSyntaxErrorException: Unknown column \'grp_flg\' in \'where clause\'
; bad SQL grammar []
字段名不存在问题]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Thu, 24 Apr 2025 02:23:52 +0000</pubDate>
    </item>
    <item>
      <title>mybatis @Select 连表查语法</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=266</link>
      <description><![CDATA[//    final static  String sql = &amp;quot;select&amp;quot; +
//        &amp;quot;    tct.check_close_time as checkCloseTime,&amp;quot; +
//        &amp;quot;    tct.memo as note,&amp;quot; +
//        &amp;quot;    tct.check_remind_time as checkRemidTime,&amp;quot; +
//        &amp;quo]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Mon, 21 Apr 2025 08:52:07 +0000</pubDate>
    </item>
    <item>
      <title>Java 中使用 Cetus 实现读写分离</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=253</link>
      <description><![CDATA[在 Java 中使用 Cetus 实现读写分离，可以通过以下步骤完成配置和代码实现：
1. 安装和配置 Cetus
首先，需要安装并配置 Cetus 以实现读写分离功能。
安装步骤


安装依赖
yum install cmake gcc glib2-devel flex libevent-devel mysql-devel gperftools-libs -y



下 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Wed, 02 Apr 2025 09:55:50 +0000</pubDate>
    </item>
    <item>
      <title>mybatis的xml文件是如何被spring加载的</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=248</link>
      <description><![CDATA[在 Spring 集成 MyBatis 的场景中，MyBatis 的 XML 文件（包括 MyBatis 配置文件和 Mapper 映射文件）是通过 Spring 的配置机制加载的。以下是具体的加载过程：
1. 配置 SqlSessionFactoryBean
在 Spring 的配置文件或 Java 配置类中，需要定义一个 SqlSessionFactoryBe ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Tue, 01 Apr 2025 09:08:43 +0000</pubDate>
    </item>
    <item>
      <title>redis 主从服务器搭建步骤及相关配置项有哪些</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=247</link>
      <description><![CDATA[以下是 Redis 主从服务器的搭建步骤及相关配置项介绍：
搭建步骤

准备主从服务器：需要准备至少两台服务器，一台作为主服务器，负责处理写操作；另一台或多台作为从服务器，负责处理读操作。也可以在同一台机器上启动多个 Redis 实例来模拟多台服务器，但要注意修改每 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Tue, 01 Apr 2025 08:12:47 +0000</pubDate>
    </item>
    <item>
      <title>redis存放hash类型的数据命令</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=246</link>
      <description><![CDATA[在 Redis 中，存放和操作 Hash 类型数据有多种命令。以下是一些常用的命令及其说明：
1. 存储 Hash 数据


HSET key field value [field value ...]

作用：为 Hash 类型的键 key 设置字段 field 的值为 value。可以同时设置多个字段和值。
示例：
HSET user:1001 name  ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Tue, 01 Apr 2025 08:10:28 +0000</pubDate>
    </item>
    <item>
      <title>redis使用场景</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=245</link>
      <description><![CDATA[Redis 的使用场景

缓存：存储热点数据，减少数据库的读取压力，提高数据访问速度。
会话存储：用于存储用户的会话信息，如登录状态、购物车内容等。
排行榜和计数器：基于原子操作实现实时排行榜、点赞数、访问计数等功能。
消息队列：通过 List 或其他数据结构实现异 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Tue, 01 Apr 2025 07:58:22 +0000</pubDate>
    </item>
    <item>
      <title>行锁和表锁区别</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=244</link>
      <description><![CDATA[行锁和表锁是数据库中两种常见的锁机制，它们的主要区别在于锁定的范围、并发性、性能影响以及适用场景。以下是它们的详细对比：
1. 锁定范围


行锁：

范围：锁定的是单个行记录，只影响被锁定的行。
粒度：锁的粒度非常细，只针对特定的行数据。
示例：在执行 UPDATE ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Tue, 01 Apr 2025 06:55:48 +0000</pubDate>
    </item>
    <item>
      <title>Mysql常见sql</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=229</link>
      <description><![CDATA[以下是一些 MySQL 数据库中常用的 SQL 命令：
数据库操作命令

CREATE DATABASE：创建新的数据库。
CREATE DATABASE db_name;


SHOW DATABASES：显示系统中所有的数据库。
SHOW DATABASES;


USE：选择要操作的数据库。
USE db_name;


DROP DATABASE：删除指定的数据 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Mon, 24 Mar 2025 01:47:17 +0000</pubDate>
    </item>
    <item>
      <title>Oracle常见sql</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=228</link>
      <description><![CDATA[以下是 Oracle 数据库中常见 SQL 用法的分类整理，涵盖基础查询、高级功能及典型场景示例：

1. 基础查询 (SELECT)


查询所有列
SELECT * FROM employees;



查询指定列
SELECT employee_id, first_name, salary FROM employees;



过滤数据 (WHERE)
SELECT * FROM e ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Mon, 24 Mar 2025 01:29:51 +0000</pubDate>
    </item>
    <item>
      <title>Java 项目中参与技术选型</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=213</link>
      <description><![CDATA[在 Java 项目中参与技术选型是一个需要系统性思考的过程，需要结合业务需求、团队能力、技术生态、长期维护等多方面因素。以下是参与技术选型的核心步骤和实践建议：

1. 理解项目需求
技术选型的起点是明确项目的核心需求，包括：

业务需求：项目类型（Web、微服务、 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Sun, 16 Mar 2025 08:20:27 +0000</pubDate>
    </item>
    <item>
      <title>数据库慢查询和大数据量表优化</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=212</link>
      <description><![CDATA[针对数据库慢查询和大数据量表优化的问题，可以从以下几个层面进行系统性解决：

一、慢查询优化核心步骤
1. 定位问题查询

启用慢查询日志
MySQL: slow_query_log=1, long_query_time=2（记录超过2秒的查询）
PostgreSQL: log_min_duration_statement=2000
实时监控工 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Sun, 16 Mar 2025 08:16:54 +0000</pubDate>
    </item>
    <item>
      <title>本地事务失效的情况</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=211</link>
      <description><![CDATA[本地事务失效的常见情况主要有以下几种：


非 public 方法
Spring 默认使用 AOP 代理，@Transactional 注解在非 public 方法上不生效。需确保事务方法为 public。


自调用问题
同一类中的非事务方法调用事务方法（如 a() 调用 @Transactional 的 b()），因代理对象被 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Sun, 16 Mar 2025 06:37:00 +0000</pubDate>
    </item>
    <item>
      <title>mysql 索引优化</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=209</link>
      <description><![CDATA[MySQL索引优化是提升查询性能的关键，合理使用索引可以显著减少数据检索时间。以下为MySQL索引优化的系统总结：

一、索引基础


索引类型

主键索引 (PRIMARY KEY)：唯一且非空，每表仅一个。
唯一索引 (UNIQUE)：确保列值唯一，可多列组合。
普通索引 (INDEX)：加速查 ...]]></description>
      <category>database</category>
      <author>Kyle</author>
      <pubDate>Sun, 16 Mar 2025 04:58:10 +0000</pubDate>
    </item>
  </channel>
</rss>