How to set input property of 'Query' node?

Q and A about functionality and how to solve a special task for your application.

How to set input property of 'Query' node?

Postby yeyoumo » 22 Sep 2017, 04:50

Hi, guys

This is the 'teacher' table below:
--------------------------------------
id | name | course
--------------------------------------
1 | tcr_nash | math
--------------------------------------
2 | tcr_bruno | chemistry
--------------------------------------
3 | tcr_smith | physics
--------------------------------------

My query statement is:
SET @c = 'math';
SELECT name FROM teacher WHERE course = @c;

As my understanding for 'Query' node, I set @c as the input property, but I can't get any result. Why?

Thanks,
YMY
yeyoumo
 
Posts: 9
Joined: 08 May 2017, 10:06

Return to How to