SQL server inserts a special string (space on the right) and exceeds the field size. Why not report an error?

前端 未结 0 1721
傲寒
傲寒 2021-01-07 12:02

DBversion:SQL Server 2016

--Create database
CREATE TABLE [dbo].[test] ([a] nvarchar(3))

--Insert strings longer than 3 (Success and not report an error)
SET          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题