用动态条件进行查询的sql语句语法问题
我现在要做测试的是一个查询操作。
先建了个数据库检查点,sql statement是select manualcode,babyname,sex,nativedetail,fathername,mothername from bornregister (没有边过滤条件)
查询条件有“开始时间”,“结束时间”,地区,manualcode,babyname,fathername,mothername 。
我把这些查询条件进行参数化到datatable中。
再在数据库检查点后写查询语句,如下,但不知道where中怎么写
DbTable("DbTable").SetTOProperty "Source","select manualcode,babyname,sex,nativedetail,fathername,mothername from chr_bornregister where manualcode= ?????? and bingindate=?????? and enddate=??? and ......"
搜索更多相关主题的帖子:
语法 sql 语句 动态 条件