[Qgis-user] SQL Expressions

Alexandre Neto senhor.neto at gmail.com
Mon Mar 30 05:31:01 PDT 2015


Someone corrects me If I'm wrong.

On Mon, Mar 30, 2015 at 1:07 PM, Junior Delaz <delazj at gmail.com> wrote:
>
> By the way, can someone explain me why for some functions (attribute,
> getFeature), you need to use simple quote for the fields and double
> quotes when using other functions ?
>

Because in the expression calculator, whenever you use the double quotes,
it will be evaluated before and it will return the value stored inside the
feature's attribute. But for some functions, like attribute(), one of the
arguments is a string with the name of the attribute itself, and not his
value.

Best regards,

Alexandre Neto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150330/c62c20ec/attachment.html>


More information about the Qgis-user mailing list