Update语句的写法(50分)

N

nfy

Unregistered / Unconfirmed
GUEST, unregistred user!
Access Table
数据库bData结构
A B C D E F .....
变量xBL:real
更新语句
update bData Set B=0,D='字符串',F=xBL where .....
这条语句是这样写吗,我这样写更新失败了,应该怎么样写?
 
where 后面是什么?
 
这里看是没有错,全部应该为
sql.add('update bData Set B=0,D=''字符串'',F=xBL where .....');
 
update bData Set B=0,D='字符串',F=:xBL where .....
where 后面见不得光,呵呵

搞笑.
 
文字加引號,日期加#號....
 
后面是where A='''+Edit1.text+'''
不能通过的是这样的
update bData Set B=0,D='字符串',F=xBL where A='''+Edit1.text+'''
如果写这样就能通过
update bData Set F=xBL where A='''+Edit1.text+'''
 
kouchun已经说了
您要赋值的字段类型和您所赋值的类型不一致
如果您在提问时能贴出错误指示会更好
 
报的什么错?
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
955
SUNSTONE的Delphi笔记
S
S
回复
0
查看
778
SUNSTONE的Delphi笔记
S
I
回复
0
查看
402
import
I
顶部 底部