문제:
column 하나를 날려먹어서 예전 버전의 파일로부터 가져와야 할 일이 생겼음
해결:
UPDATE table_to
SET
corrupted=(
SELECT
new_db.table_from.flawless
FROM
new_db.table_from
WHERE
new_db.table_from.flawless = table_to.corrupted
)
FROM
new_db.table_from
WHERE
new_db.table_from.id=table_to.id
반응형
'Code' 카테고리의 다른 글
임시 변수 없는 XOR 스왑 (0) | 2021.11.04 |
---|---|
pip: Could not build wheels for which use PEP 517 and cannot be installed directly (0) | 2021.10.10 |
.NET 오류 메시지 영어로 출력 (0) | 2021.09.23 |
Chrome 쿠키 임의로 추가 (0) | 2021.08.26 |
WinDivert64.sys/WinDivert32.sys 삭제 불가 해결 (0) | 2021.08.13 |
PowerShell 실행 시 명령 실행 (0) | 2021.07.23 |
VS2019 실행 시 devenv.sln 저장 메시지 오류 (0) | 2021.05.25 |
PowerShell path 초기화 (0) | 2021.04.07 |