MySQL: Höchste ID ausgeben +- Sponsor-Board.de (https://www.sponsor-board.de) +-- Forum: Community (/forumdisplay.php?fid=56) +--- Forum: Hilfe (/forumdisplay.php?fid=102) +---- Forum: Scripting (/forumdisplay.php?fid=108) +---- Thema: MySQL: Höchste ID ausgeben (/showthread.php?tid=16823) |
MySQL: Höchste ID ausgeben - Q6600 - 23.09.2011 22:27 Hallo zusammen, ich wollte mal fragen wie man die höchste Zahl in einer Spalte rausfinden kann. "SELECT ID FROM TABELLE" Geht irgendwie nicht, da kommt immer "Resource id #12" RE: MySQL: Höchste ID ausgeben - Sysix - 23.09.2011 22:30 SELECT ID FROM TABLE ORDER BY ID DESC LIMIT 0, 1 RE: MySQL: Höchste ID ausgeben - DebianDEV - 23.09.2011 22:31 oder Code: SELECT max(id) as 'id' FROM TABLE LIMIT 1
RE: MySQL: Höchste ID ausgeben - Q6600 - 23.09.2011 22:35 Okay, danke. Es klappt =) RE: MySQL: Höchste ID ausgeben - DebianDEV - 23.09.2011 23:01 Mich würde interessieren, was du nutzt |