前段时间做什么来着,遇到这个问题,查到了解决方案,现在传上来。
Error: String or binary data would be truncated 数据库提示错误

解决方案就是把数据库字段的大小改大点。
比如nvarchar(10) 改成nvarchar(50)。

alter table 表名 alter column 字段名 type not null

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-10-16
  • 2022-12-23
  • 2021-10-27
  • 2021-12-11
猜你喜欢
  • 2022-02-06
  • 2022-12-23
  • 2021-11-15
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案