table2의 select with table2에서 column (a)를 업데이트하지만 table2의 기존 열 (b)가 null이 아닌 경우에만 업데이트를 원합니다. 내가 어디에 내 진술에 영향을 미칠 것이기 때문에 진술 (null이 아님)을 사용하고 싶지 않다. 내 코드의null이 아닌 경우에만 업데이트
예 :
update table1 set column(a) = (select column(b) from table2)
나는이
update table1 set column(a) = not null(select column(b) from table2)
예처럼 뭔가를 시도하고있다 : 당신은 당신의 제약 조건을 달성하기 위해이 쿼리를 사용할 수 있습니다
update ExpressMarketCheck set Barcode = (select barcode from ExpressMarket), Name=(select name from expressmarket), price=(select price from expressmarket)
"내 모든 코드에 영향을 미칩니다"는 의미는 무엇입니까? 왜 간단하고 표준적인'WHERE' 절을 사용하지 않을 수 있습니까? –
WHERE 절의 문제점은 무엇입니까? –