??SQL?洢?????и??????????????????
???????????? ???????[ 2016/11/17 11:44:53 ] ????????SQL ?????
??????SQL?洢?????и????????????????????????????????????????洢?????н?????where???ó??????仯?????where?????????????????????execute(SQL)
set @where= '(DATEDIFF(day??'''+CONVERT(varchar(100)?? @d_start?? 23)+'''??sdate)>=0 and DATEDIFF(day??'''+CONVERT(varchar(100)?? @d_end?? 23)+'''??sdate)<=0) and '
+' shopid='''+@shopid+''' and VenderID in '
+' (select vender from tableB where vendertype=''????'' and shopid='''+@shopid+''')'
@d_start @d_end??
@shopid
?????????????????洢?????????????????????Щ??varchar????????????????????????????+?????? eg: where shopid='''+@shopid+''' ????д??????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11