if exists(SELECT *FROM [DBPersonnel].[dbo].[TB証明書] where [社員番号]='001')
update [DBPersonnel].[dbo].[TB証明書] set [身分証明書]='11' where [社員番号]='001'
else
INSERT INTO [DBPersonnel].[dbo].[TB証明書] ([社員番号],[身分証明書],[卒業証書])
VALUES ('001','sssss','ssssss')
update [DBPersonnel].[dbo].[TB証明書] set [身分証明書]='11' where [社員番号]='001'
else
INSERT INTO [DBPersonnel].[dbo].[TB証明書] ([社員番号],[身分証明書],[卒業証書])
VALUES ('001','sssss','ssssss')