思达报表工具Style Report基础教程—在手工输入的SQL查询中使用可替换字符串型变量
教程视频:http://v.youku.com/v_show/id_XOTIxMjA4NDY0.html
1)打开思达设计器,新建数据源(教程2):SQLPARAMSELECT
2)右键SQLPARAMSELECT,新建查询:ParamSelect_
![](http://blog.vsharing.com/Uploads/UserDirs/9/3381/1352358/2015040316033574164.jpg)
3)点击SQL字符串,编辑。如图
![](http://blog.vsharing.com/Uploads/UserDirs/9/3381/1352358/20150403160342637267.jpg)
4)点击完成,预览,将弹出参数框
![](http://blog.vsharing.com/Uploads/UserDirs/9/3381/1352358/20150403160348683372.jpg)
5)输入参数11,预览。查询只显示customer_id为11的数据
![](http://blog.vsharing.com/Uploads/UserDirs/9/3381/1352358/20150403160355715545.jpg)