USE [dbo].[MySchool] GO IF COL_LENGTH(‘Student‘,‘Score‘) IS NULL BEGIN ALTER TABLE Student ADD Score DOUBLE END GO
COL_LENGTH判断表中是否含有列,比如此处判断Student表中是否含有Score
2023-11-02 12:38:22
USE [dbo].[MySchool] GO IF COL_LENGTH(‘Student‘,‘Score‘) IS NULL BEGIN ALTER TABLE Student ADD Score DOUBLE END GO
COL_LENGTH判断表中是否含有列,比如此处判断Student表中是否含有Score
下一篇:炉石传说 佣兵战纪 冬泉谷