문제

I want to return all columns, and anywhere there's a NULL to say 'hey' instead.

But this doesn't work

SELECT IFNULL(*, 'hey') FROM $table
도움이 되었습니까?

해결책

You have to do this one column at a time.

Functions do not generally take * as an argument.

select ifnull(col1, 'hey'), . . .
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top