Leser: 2
4 Einträge, 1 Seite |
SELECT MAX(id), vorname, user_id FROM users GROUP BY user_id LIMIT 1
SELECT id, vorname, user_id FROM users WHERE user_id = (SELECT MAX(id) FROM users WHERE user_id = 5)
SELECT id, name FROM users WHERE name = 'test' AND id = MAX(id)
4 Einträge, 1 Seite |