請問各位大大
我想用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的語法要怎麼改