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
2020-8-28
productdesc = 'Painting Set';
sqlquery = ['SELECT * FROM productTable ' ...
'WHERE productDescription = ' '''' productdesc ''''];
results = fetch(conn,sqlquery)
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Generated Code Interfacing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!