Is there a command in mysql to select the maximum value in a particular collum
| SitePoint Sponsor |




Is there a command in mysql to select the maximum value in a particular collum
Last edited by slighltywhacked; Jun 17, 2001 at 10:35.
Hi,
I think you have to do it like this :
SeanPHP Code:SELECT articles.*, lookup.*, writers.* FROM articles, lookup, writers WHERE writers.wid=lookup.wid & articles.aid=lookup.aid;
![]()
SELECT MAX(col_name) FROM tbl_name
Kevin Yank
CTO, sitepoint.com
I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
Baby’s got back—a hard back, that is: The Ultimate CSS Reference
Ok,
Did you edit your question or did that post in the wrong topic for some reason ?
Hmmm weird indeed, Sean. It says the post was changed, so I guess that explains it.
Kevin Yank
CTO, sitepoint.com
I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
Baby’s got back—a hard back, that is: The Ultimate CSS Reference
I missed that! The first question was about selecting everything when using table joins.
Sean![]()
In fact, SELECT * FROM table1, table2, ... should still work.
Kevin Yank
CTO, sitepoint.com
I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
Baby’s got back—a hard back, that is: The Ultimate CSS Reference
Bookmarks