Hallo,
danke für deine Antwort!
SELECT b.a alias, b.a + 5 alias2 FROM ( SELECT 5 - 2 a) b
Hm, ich habe aber schon eine FROM-Angabe, und eigentlich hab ich keine Lust, unübersichtliche Joins zu basteln. Außerdem finde ich die Notationsreihenfolge irgendwie nicht intuitiv. Die Idee ist aber trotzdem sehr elegant, danke!
Ich will Stored Procedures :-) Naja, bis MySQL 5.0 wird's wohl noch ohne gehen.
Bye,
Peter