Jump to content

SQL HAVE in statement


tecdesign

Recommended Posts

ok here is the sql statement

[code]
SELECT * FROM `topics` WHERE `topicarea` == general HAVE `topicid` >all(select `topicid` from `topics')
[/code]

What I am trying to say is that the topicarea is general and topicid as the greatest where in my php I will use have the greatest topic id minus $i which will be inside a while loop.
Link to comment
https://forums.phpfreaks.com/topic/8306-sql-have-in-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.