问一个SQL语句有关问题!
问一个SQL语句问题!!!
_bstr_t getOrg=(_bstr_t) "update ss_orgstruc set maxallocspace= ' " + maxspace +(_bstr_t) " ' ";
其中maxspace 是_variant_t类型,里面是个long数据,但编译是这个语句出错:error C2593: 'operator + ' is ambiguous。怎样改正呢?我估计是maxspace 的类型问题,因为getOrg是_bstr_t。请大家帮忙改下
------解决方案--------------------
CString strSQL;
strSQL.Format( "update ss_orgstruc set maxallocspace= '%s ", + maxspace)
_bstr_t getOrg=(_bstr_t) "update ss_orgstruc set maxallocspace= ' " + maxspace +(_bstr_t) " ' ";
其中maxspace 是_variant_t类型,里面是个long数据,但编译是这个语句出错:error C2593: 'operator + ' is ambiguous。怎样改正呢?我估计是maxspace 的类型问题,因为getOrg是_bstr_t。请大家帮忙改下
------解决方案--------------------
CString strSQL;
strSQL.Format( "update ss_orgstruc set maxallocspace= '%s ", + maxspace)