Hello,

Basically I want to know if this is a good query for indexing.

I have the following query:

select
  count(1) as count
from
  session
where
  last >= DATE_SUB(NOW(), INTERVAL :from SECOND)

Is it safe to assume that the expression calling the function DATE_SUB
is evaluated just once to a fixed date?

Thanks
Jamie Madill

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to