增加字段长度会导致数据丢失吗?

发布于 2024-07-29 01:51:57 字数 94 浏览 4 评论 0原文

如果我们增加字段宽度(例如将 varchar(7) 更改为 varchar(20))会导致数据丢失吗?

这是在 Firebird 1.5 数据库中完成的。

If we increase the field width (say varchar(7) to varchar(20)) will it result in data loss?

This is to be done in Firebird 1.5 database.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心的位置 2024-08-05 01:51:57

不会,当您增加列的大小时,不会丢失数据。

当然,如果可能的话,您应该首先在生产数据库的副本上执行此操作,以确保您对结果感到满意。

No, as you are increasing the size of the column there will be no data loss.

Of course you should, if at all possible, first do this on a copy of your production database to ensure you are happy with the result.

梦里人 2024-08-05 01:51:57

如果您要增加大小,则不然:

ALTER TABLE t1 ALTER c1 TYPE char(90);

减少始终是问题

您应该考虑使用 FlameRobin 作为管理工具来管理依赖项并简化 FireBird 的使用。

Not if you are increasing the size:

ALTER TABLE t1 ALTER c1 TYPE char(90);

Reducing is always the problem.

You should look at using FlameRobin as an administrative tool to manage dependencies and simplify working with FireBird.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文