16,471
社区成员
发帖
与我相关
我的任务
分享
CString strA;
strA.Format( _T("SET NOCOUNT ON ")
_T("declare @num int ")
_T("set @num=0 ")
_T("select 线路号, 站点名, 路线=cast('('+线路号+':'+站点名 as varchar(4000)), 序号=序号, tt=@num into # from 线路站点 where 站点名='%s'; ")
// ....
, 参数1
, 参数2
, // ...
);
test.Format(_T("name = \'%s\'"), _T("test"));