MySQL Forums
Forum List  »  Newbie

Re: sum top 5 question
Posted by: Peter Brawley
Date: May 05, 2016 12:31PM

> When i try to save this view i get the following error.

MySQL supports From clause subqueries in Views only since 5.7.7.

If that upgrade is not feasible, and/or if View performance is unsatisfactory (as it often is), one solution is to create a named queries table from which apps and users can conveniently select canned queries like this one. Any language with a mysql API (Perl, PHP, Java, C# &c) can fetch & execute such queries in two lines of code---one to fetch, one to invoke.

Options: ReplyQuote


Subject
Written By
Posted
April 28, 2016 04:34AM
April 28, 2016 01:28PM
April 29, 2016 08:33AM
May 02, 2016 02:33AM
May 02, 2016 09:58AM
May 03, 2016 07:05AM
May 03, 2016 09:23AM
May 04, 2016 06:51AM
May 04, 2016 11:48AM
May 04, 2016 11:39PM
May 05, 2016 11:24AM
Re: sum top 5 question
May 05, 2016 12:31PM
May 04, 2016 11:12PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.