그래서 제가하고 싶은 것이 있습니다.
내 테이블 이름은 GameInvLoc이고 3 개의 열 ID, GameLoc, GameInv가 있습니다.
ID GameLoc GameInv
1 Bre Null
나는 이것을하고 싶다
Update GameInvLoc
set GameInv = 'select 'ROlID,Whse,Company,LocationNo' union all select concat(id,',',Whse,',',Company,',',LocationNo) from CINT..vwGameReport'
where id = 1
하지만 견적에 문제가 있으며 어디로 가면 구문 오류가 발생합니다.
이 작업을 수행하는 올바른 방법을 아는 사람 있습니까?
문자열 리터럴에서 하나의 작은 따옴표를 나타내려면 작은 따옴표를 두 번 사용해야합니다.
이 같은:
Update GameInvLoc
set GameInv = 'select ''ROlID,Whse,Company,LocationNo'' union all select concat(id,'','',Whse,'','',Company,'','',LocationNo) from CINT..vwGameReport'
where id = 1
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다