Skip to main content
Jul 21, 2020 12:58 PM UTC
Solved

Use table name as parameter for SQL command and SQL query

Hi, 

 

How to use table name as parameter in Database thing for SQL command and query ?   

I tried something like : select * from [[tableName]],  but it doesn't work. 

 

Regards,

Sean

nmillesonAnswer
Jul 21, 2020 1:23 PM UTC

Try this instead:  select * from <<tableName>>

3 replies

nmillesonAnswer
Jul 21, 2020 1:23 PM UTC

Try this instead:  select * from <<tableName>>

seancccAuthor
Jul 21, 2020 2:37 PM UTC

@nmilleson ,

 

Thank you for your quick reply.  I just found it as well and posted it before refreshing the page :  ) 

 

Regards,

Sean

seancccAuthor
Jul 21, 2020 2:36 PM UTC

I found the answer in https://developer.thingworx.com/en/resources/guides/external-databases . 

 

Just use <<tableName>> in SQL  

 

Regards,

Sean