Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
SSW Rules to Better SQL Server Databases 不是一个工具,而是一个很好的资源
Not a tool, but a good resource is SSW Rules to Better SQL Server Databases
既然你提到了 PLSQL,我假设你正在使用 Oracle。 对于数据库设计,您可以编写一组主要在数据字典表上运行的简单 SQL 脚本。 查看以下示例规则和相同的 sql:
表名称不应大于 'N' 个字符
列名称不应超过 'N' 个字符< /strong>
列出表的所有有效外键列(假设您使用 fk 约束)
如果您不使用外键约束来提高性能,则需要将元信息存储在单独的表中并编写像上面一样的 SQL 脚本来检查现有数据上的 FK 违规情况。
Since you mention PLSQL, I assume you are using Oracle. For database design, you can write a set of simple SQL scripts that run primarily on the data dictionary tables. Look at the following example rule and the sql for the same:
Table name should not be greater than 'N' characters
Column name should not exceed 'N' Characters
List all VALID foreign key columns of a table (assuming you are using fk constraints)
In the event you are not using foreign key constraints to improve performance, you need to store meta information in separate tables and write ansql script like the one above to check for FK violations on existing data.