Hi,
diese Query ist gut:
SELECT FROM_UNIXTIME(Datum, '%Y%|%m') AS ym from table where (SELECT FROM_UNIXTIME(Datum, '%Y%|%m')="2010|01")
Diese hier sollte dasselbe Ergebnis bringen, aber das macht sie nicht.
Meine Frage ist, warum nicht?
SELECT FROM_UNIXTIME(Datum, '%Y%|%m') AS ym from table where ym="2010|01"
Grüße, Jürgen