這個SQL查詢有什麼問題?這個SQL查詢有什麼問題?
UPDATE學生集ID = '3',電子郵件= '[email protected]',密碼= '20105', 名稱= '3',FatherName = '3',CNIC = 3,ContactNo = 3
,第= 'G',部= 'EE',圖片= '10414450_624151571051295_2997621265926572989_n.png',SemesterId = 1 其中id = '3'
如果學生的表是:
CREATE TABLE [dbo].[Student] (
[Id] VARCHAR (10) NOT NULL,
[Email] VARCHAR (50) NOT NULL,
[Password] VARCHAR (50) NOT NULL,
[Name] VARCHAR (50) NOT NULL,
[FatherName] VARCHAR (50) NULL,
[CNIC] CHAR (13) NOT NULL,
[ContactNo] CHAR (11) NOT NULL,
[Department] VARCHAR (10) NULL,
[Degree] VARCHAR (10) NULL,
[Image] VARCHAR (MAX) NULL,
[SemesterId] SMALLINT NULL,
PRIMARY KEY CLUSTERED ([Id] ASC),
FOREIGN KEY ([Department]) REFERENCES [dbo].[Department] ([Id]),
CONSTRAINT [FK_Student_ToDegree] FOREIGN KEY ([Degree]) REFERENCES [dbo].[Degree] ([Name])
);
先謝謝了!
什麼是錯的錯誤? –
您是否收到錯誤? –
'Section ='G''什麼是'Section'?應該是'Department'嗎? –