<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[让 AI 写 SQL，生产环境怎么加护栏]]></title><description><![CDATA[<p dir="auto">想让 AI 帮运营写查询 SQL。只读库是不是就安全了？</p>
]]></description><link>https://localaihub.com/topic/246/让-ai-写-sql-生产环境怎么加护栏</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 19:44:33 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/246.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 May 2026 15:03:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Tue, 19 May 2026 14:18:00 GMT]]></title><description><![CDATA[<p dir="auto">AI 写 SQL 是高价值场景，但护栏不能省。</p>
]]></description><link>https://localaihub.com/post/2822</link><guid isPermaLink="true">https://localaihub.com/post/2822</guid><dc:creator><![CDATA[小吴]]></dc:creator><pubDate>Tue, 19 May 2026 14:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Tue, 19 May 2026 11:11:00 GMT]]></title><description><![CDATA[<p dir="auto">还要保存查询目的。后面审计能看懂为什么查。</p>
]]></description><link>https://localaihub.com/post/2821</link><guid isPermaLink="true">https://localaihub.com/post/2821</guid><dc:creator><![CDATA[阿航]]></dc:creator><pubDate>Tue, 19 May 2026 11:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Tue, 19 May 2026 08:10:00 GMT]]></title><description><![CDATA[<p dir="auto">这个好。确认的不是 SQL 文本，是动作说明。</p>
]]></description><link>https://localaihub.com/post/2820</link><guid isPermaLink="true">https://localaihub.com/post/2820</guid><dc:creator><![CDATA[小陈在改bug]]></dc:creator><pubDate>Tue, 19 May 2026 08:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Tue, 19 May 2026 06:21:00 GMT]]></title><description><![CDATA[<p dir="auto">那就不要让他们确认 SQL，让系统把“会查询哪些数据、预计返回多少行”翻译成人话。</p>
]]></description><link>https://localaihub.com/post/2819</link><guid isPermaLink="true">https://localaihub.com/post/2819</guid><dc:creator><![CDATA[Grace]]></dc:creator><pubDate>Tue, 19 May 2026 06:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Tue, 19 May 2026 04:13:00 GMT]]></title><description><![CDATA[<p dir="auto">运营不懂 SQL，怎么确认？</p>
]]></description><link>https://localaihub.com/post/2818</link><guid isPermaLink="true">https://localaihub.com/post/2818</guid><dc:creator><![CDATA[小蓝]]></dc:creator><pubDate>Tue, 19 May 2026 04:13:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Tue, 19 May 2026 02:20:00 GMT]]></title><description><![CDATA[<p dir="auto">可以先让 AI 生成 SQL 草稿，不直接执行。用户确认后跑。</p>
]]></description><link>https://localaihub.com/post/2817</link><guid isPermaLink="true">https://localaihub.com/post/2817</guid><dc:creator><![CDATA[melo]]></dc:creator><pubDate>Tue, 19 May 2026 02:20:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Tue, 19 May 2026 01:53:00 GMT]]></title><description><![CDATA[<p dir="auto">敏感字段要脱敏。只读也能泄露。</p>
]]></description><link>https://localaihub.com/post/2816</link><guid isPermaLink="true">https://localaihub.com/post/2816</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Tue, 19 May 2026 01:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Mon, 18 May 2026 23:49:00 GMT]]></title><description><![CDATA[<p dir="auto">最好接分析副本，不要打生产主库。</p>
]]></description><link>https://localaihub.com/post/2815</link><guid isPermaLink="true">https://localaihub.com/post/2815</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Mon, 18 May 2026 23:49:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Mon, 18 May 2026 21:09:00 GMT]]></title><description><![CDATA[<p dir="auto">会。要 explain、预估成本、必要时人工确认。</p>
]]></description><link>https://localaihub.com/post/2814</link><guid isPermaLink="true">https://localaihub.com/post/2814</guid><dc:creator><![CDATA[陈一]]></dc:creator><pubDate>Mon, 18 May 2026 21:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Mon, 18 May 2026 19:35:00 GMT]]></title><description><![CDATA[<p dir="auto">模型会不会写错 SQL？</p>
]]></description><link>https://localaihub.com/post/2813</link><guid isPermaLink="true">https://localaihub.com/post/2813</guid><dc:creator><![CDATA[普通网友A]]></dc:creator><pubDate>Mon, 18 May 2026 19:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Mon, 18 May 2026 17:38:00 GMT]]></title><description><![CDATA[<p dir="auto">要加限时、limit、白名单表、禁止敏感字段、查询审计。</p>
]]></description><link>https://localaihub.com/post/2812</link><guid isPermaLink="true">https://localaihub.com/post/2812</guid><dc:creator><![CDATA[阿白]]></dc:creator><pubDate>Mon, 18 May 2026 17:38:00 GMT</pubDate></item><item><title><![CDATA[Reply to 让 AI 写 SQL，生产环境怎么加护栏 on Mon, 18 May 2026 15:35:00 GMT]]></title><description><![CDATA[<p dir="auto">只读是基础，不是全部。大查询也能拖死库。</p>
]]></description><link>https://localaihub.com/post/2811</link><guid isPermaLink="true">https://localaihub.com/post/2811</guid><dc:creator><![CDATA[小吴]]></dc:creator><pubDate>Mon, 18 May 2026 15:35:00 GMT</pubDate></item></channel></rss>