Joa gibts:
SELECT
IF(FELD1 IS NULL, 1, 0) +
IF(FELD2 IS NULL, 1, 0) +
usw. ... +
IF(LELDN IS NULL, 1, 0) as leerspalten
FROM
TABELLE
WHERE
IDFELD=4;
Gruss
Stefan
Joa gibts:
SELECT
IF(FELD1 IS NULL, 1, 0) +
IF(FELD2 IS NULL, 1, 0) +
usw. ... +
IF(LELDN IS NULL, 1, 0) as leerspalten
FROM
TABELLE
WHERE
IDFELD=4;
Gruss
Stefan