不行不行不行不行啊!再度请教sql与edit中的加减问题!(10分)

Y

yyjqtww

Unregistered / Unconfirmed
GUEST, unregistred user!
ISBN是字符型!
SQL.Text := 'update ykucuntab set total=total+'+ strtoint(edit8.text) + ' where isbn='+''''+edit2.text+''''+'';
当我去掉'+ strtoint(edit8.text) + '中的引号时
出现错误strtoint is not a recogenized function name.
到底应该怎么办啊?很急,请各位老师帮帮忙啊
 
谢谢帮我的老师们!
我已经解决了这个问题,是李崇文的答案,他的答案我执行通过了!
答案:
'update ykucuntab set total=total+'+edit8.text+' where isbn='+''''+edit2.text+''''+''
 

应该这么写
SQL.Text := 'update ykucuntab set total=total+'+ edit8.text+ ' where isbn='+''''+edit2.text+'''';
去掉最后的引号
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
847
SUNSTONE的Delphi笔记
S
I
回复
0
查看
898
import
I
I
回复
0
查看
769
import
I
顶部