看板 Database 關於我們 聯絡資訊
請問各位大大 我想用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的語法要怎麼改 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.125.97.179 ※ 文章網址: https://www.ptt.cc/bbs/Database/M.1478704497.A.434.html
LZN: float轉成字串形態? 11/10 16:06