On Sat, Apr 4, 2015 at 3:24 PM, Noel Grandin <[email protected]> wrote:

> Why can you not use it in a where clause?
>

It's not supported by the SQL standard. None of the databases I tried
support that.

Just to clarify, I can't use the *alias* in the WHERE clause​, like this:

select distance(name, 'xyz') as dist
   from person
   where dist > 0.1;

I can repeat the expression in the WHERE clause like this:

select distance(name, 'xyz') as dist
   from person
   where distance(name, 'xyz') > 0.1;

And that works, but takes more time.

-- 
*Harshad RJ <http://lavadip.com>*

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to