게시판
      
상위분류 : 잡필방 중위분류 : 서류가방 하위분류 : 전산과 컴퓨터
작성자 : 문시형 작성일 : 2021-05-15 조회수 : 1,751
제 목 : 타 db에서 입력된 수 구하여 수정하기

타 db에서 입력된 수 구하여 수정하기

 

Update dbo.Labor_contract set Files_Count = ( Select count(*) 
              from Surisan_A.dbo.UpFile where Cnn_Name='ContractOfEmployment' And Cnn_Code = dbo.Labor_contract.Aid)

Update dbo.Notice set Files_Count = ( Select count(*) from Ayoung_A.dbo.Sw_Files where Parents_Name='Notice' And Parents_Num = dbo.Notice.Aid)

 

 

| | 목록으로