IFNULL
column๊ฐ์ด null์ด๋ฉด ํน์ ๊ฐ์ผ๋ก ๋ฐ๊ฟ์ฃผ๋ ๋ฌธ๋ฒ
SELECT
IFNULL(revenue, 0) AS revenue
FROM
table
revenue๊ฐ null ์ด๋ฉด 0์ผ๋ก ๋ฐ๊ฟ ๊ฐ์ ธ์ค๋ ์ฟผ๋ฆฌ๋ฌธ์ด๋ค.
Last updated
column๊ฐ์ด null์ด๋ฉด ํน์ ๊ฐ์ผ๋ก ๋ฐ๊ฟ์ฃผ๋ ๋ฌธ๋ฒ
SELECT
IFNULL(revenue, 0) AS revenue
FROM
table
revenue๊ฐ null ์ด๋ฉด 0์ผ๋ก ๋ฐ๊ฟ ๊ฐ์ ธ์ค๋ ์ฟผ๋ฆฌ๋ฌธ์ด๋ค.
Last updated