IF NOT EXISTS (SELECT * FROM sysobjects WHERE Name = OBJECT_ID(N'[dbo].[Role]') AND type in (N'U'))BEGINCREATE TABLE [dbo].[Role]([ID] [int] IDENTITY(1,1) NOT NULL,[RoleName] int NULL,CONSTRAINT [PK_Role] PRIMARY KEY CLUSTERED ([ID] ASC)) ON [PRIMARY]
將 nvarchar 值 'Category' 轉(zhuǎn)換為數(shù)據(jù)類(lèi)型為 int 的列時(shí)發(fā)生語(yǔ)法錯(cuò)誤,咋辦?
達(dá)令說(shuō)
2022-12-15 15:11:04