gpt4 book ai didi

sql - 现有 SQL 数据库的规范化

转载 作者:行者123 更新时间:2023-12-04 06:47:08 27 4
gpt4 key购买 nike

我有一个单表数据库,我继承并迁移到 SQL Server,然后通过创建、链接和填充一大堆表示主表中项目的查找类型表来规范化它。我现在想用它们的外键替换原始表中的那些项目。我是不是一直在写一堆查询或 UDF,然后是一个巨大的 INSERT 语句来完成这个,还是有一个工具我可以用来指向各个领域并让它为我处理繁重的工作?

最佳答案

红门SQL Refactor带有 14 天的评估期,并且有一个“拆分表”重构,听起来它可以满足您的需求?

该功能描述如下:

Split Table splits a table into two tables, and automatically rewrites the referencing stored procedures, views, and so on. You can also use this refactoring to introduce referential integrity tables. You can select this feature from the context menu in Management Studio’s Object Explorer.

关于sql - 现有 SQL 数据库的规范化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3593036/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com