1
보기가 있는데 단어가있는 열에서 Null을 변경하고 싶습니다. other
. 값을 올바르게 교체하지 않았다보기 만들기 및 Null 값을 단어로 바꿉니다.
CREATE VIEW APB1 AS
SELECT jos_jam.postcode, location_id, description,
category, apb.street, location, apb
FROM jos_jam
LEFT JOIN apb
ON jos_jam.postcode=apb.postcode;
FROM apb
UPDATE APB1 SET apb = 'Other' where apb is null
, 나는 또한 시도 :
이
내가 지금까지 시도한 것입니다CREATE VIEW APB1 AS
SELECT jos_jam.postcode, location_id, description,
category, apb.street, location, apb
FROM jos_jam
LEFT JOIN apb
ON jos_jam.postcode=apb.postcode;
REPLACE(apb.apb, 'NULL') as 'Other'
FROM apb
내가 할 두 번째 쿼리에 대한 다음과 같은 오류 :
#1064 - You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'FROM apb
UPDATE APBVolunteers4 SET apb = 'Other' where apb is null' at line 1
이 오류는 무엇을 의미하며보기에서 null 값을 단어로 대체합니까?