楼主:
Hsunsid (小勋)
2016-11-09 23:14:54请问各位大大
我想用c++储存变量s1到sql server的time这一栏内(资料型态float)
float s1 =1;
qry.exec("INSERT INTO hospital.dbo.list(ID,PW,time)"
"VALUES('333','333','"+s1+"')");
但在VALUES('333','333','"+s1+"')出现问题
invalid operands of types 'const char [87]' and 'float' to binary 'operator '
想问问SQL的语法要怎么改