Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query of queries limit issue

Status
Not open for further replies.

lucidtech

IS-IT--Management
Jan 17, 2005
267
US
Whenever I run a query of a query and use 'LIMIT' I get an error. I know cfquery has a maxrows setting but I need to start a certain row as well and limit the results to 10 rows.
 
In memory QoQ's do not support LIMIT. So you will need to find another way to limit the rows. Either in your original database query, or within CF code (using cfoutput, etcetera ..).

----------------------------------
 
Have you tried using Top 10? I don't know if it will work as QofQ doesn't use all the standard sql terms.

Share your query, I can think of several ways to use maxrows or Top 10 to get the result set you want but it would be much easier to see your code.

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top