例如:
tx=5;
sql='select t.*,d.name from t_fraginf t join t_fragrant d on t.tno=d.dno having tno=tx';
请问,单引号中的tx如何等于5

 采纳的回答

0 个投票

sql=['select t.*,d.name from t_fraginf t join t_fragrant d on t.tno=d.dno having tno=', nub2str(tx) , ';' ];

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 使用 App 设计工具开发 App 的更多信息

Community Treasure Hunt

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

Start Hunting!