I am using doctrine 2.1 DQL and I want to get table data in this order:
SELECT u FROM User u ORDER BY us * ut
s and t are the two displayed column fields on the user.
But I get a QueryException.
Can anybody help me?
this should do the trick:
SELECT u, (us * ut) AS multiplication FROM User u ORDER BY multiplication
Source: https://habr.com/ru/post/1384602/More articles:C string (char array): ignores the next scanf due to spaces - cInclusion of a function in a local namespace to speed up the entry of access descriptors - pythonHow to get real height of text drawn on CTFrame - objective-cHow to change this MySQL query to SELECT from one table instead of two? - phpThe difference between these two types of JavaScript self-emitting functions - javascriptHow to align Row [] elements with bottom or top in Mathematica? - alignmentDraw the path programmatically - pathHow to design Selenium 2 tests using a page object template using inheritance - javaWhat is the copy in Java from a C # @ string literal? - javaIs there one way to say this? - pythonAll Articles