trying to use like in a query referencing a predefined variable and cant get the syntax right.
SELECT v.name AS VolumeName
FROM cm_storage.volume v, cm_storage.cluster c, cm_storage.vserver vs
WHERE (c.id = vs.cluster_id)
AND (vs.id = v.vserver_id)
and v.name like '${LastVol}'
order by v.name desc
limit 1
Anyone know if this can be done, and if so, what the syntax is?