using workspace variable value in visual query builder?

How can i use the values from workspace variable of matlab program in SQL queries of visual query builder (i.e SELECT * FROM tablename WHERE salary>workspacevariable's value) instead of static values like (WHERE salary>1000)?

1 件のコメント

Tibor Meszaros
Tibor Meszaros 2020 年 8 月 28 日
productdesc = 'Painting Set';
sqlquery = ['SELECT * FROM productTable ' ...
'WHERE productDescription = ' '''' productdesc ''''];
results = fetch(conn,sqlquery)

サインインしてコメントする。

回答 (0 件)

質問済み:

2017 年 3 月 19 日

コメント済み:

2020 年 8 月 28 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by