Forum Discussion
aignn
6 years agoHelper II
How use parameter in Mysql connector query?
hello! Tell me please how use parameter in Mysql connector query? I use Mysql connector in Powerbi for get data from Mysql base = MySQL.Database("mysqlserver1.local", "base", [Query="...
v-lid-msft
6 years agoCommunity Support
Hi aignn ,
We can create a parameter called "id_parameter" and use text type, then use it as following formula:
= MySQL.Database("localhost", "testdb", [ReturnSingleDatabase=true, Query="select * from testdb.tablename where category_id = " & id_parameter])
Please also refer to this thread about the warning "Permission is required to run this native database query".
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.