question

Tamilselvan avatar image
0 Likes"
Tamilselvan asked Jason Lightfoot commented

Access token label in SQL Query

How to access the token label in the SQL query.

for example, comaparing the table value with the token.label

FlexSim 23.1.1
sql queries
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

What's the context of the SQL - a table query, or list pull?

In a table query you can either concatenate the value into the string or pass in parameters for the token. Normally you'll be using a field name in the table to match values:

  1. Table result=Table.query("SELECT * FROM MyTable WHERE $1.myLabel=<TableField>",token);

where you'd replace <TableField> with the name of column you want to match.

In a list pull query you just need to refer to the token as puller:

  1. WHERE puller.myLabel=<ListField>

again replacing <ListField> with the name of a field you've added to the list.


All of this is documented on this site and in the online documentation. Please go through all the tutorials.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.