Hallo,
Beispiel für MySQL: Zahl, die 5 am nächsten liegt
SELECT * FROM tabelle ORDER BY ABS(5-floatfeld) LIMIT 1
lg
Martin Dunst
--
Do what I say, not what I do.
--Tim Berners-Lee
Do what I say, not what I do.
--Tim Berners-Lee
Hallo,
Beispiel für MySQL: Zahl, die 5 am nächsten liegt
SELECT * FROM tabelle ORDER BY ABS(5-floatfeld) LIMIT 1
lg
Martin Dunst