var
i:Integer;
begin
i:=5000;
try
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.text:='UPDate se set summ=''i'' where se=''a''';
ADOQuery1.ExecSQL;
except
endend;UPDTAE SET后面的summ=''i'' 的I的类型怎么老是出错呢 SQL表格上定义了SUMM为INT类型,关于在SET后面的各个有关一般常用的类型的转换是什么样的。
i:Integer;
begin
i:=5000;
try
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.text:='UPDate se set summ=''i'' where se=''a''';
ADOQuery1.ExecSQL;
except
endend;UPDTAE SET后面的summ=''i'' 的I的类型怎么老是出错呢 SQL表格上定义了SUMM为INT类型,关于在SET后面的各个有关一般常用的类型的转换是什么样的。
解决方案 »
- oracle如何写“求连续N天库存为0的商品编码”的sql语句。
- delphi中用adodataset连接数据库是出现错误
- 钩子函数
- sql statement? 物流仓储方面的。
- 大家好,我买了张delphi7.0的盘,找不到序列号,那位大哥大姐帮个忙,给出那两个序列号
- delphi求k线图的极小值和极大值(画k线图程序已有)
- 难道Delphi帮助里的示例代码也会有错!
- 等了十多天才敢说辞职,高兴散分!
- 我是用DELPHI的,已经习惯了DELPHI,想学JAVA!高手给点建议,好吗!
- readonly?
- 使用Delphi代码附加SQL2000数据库,没有任行错误提示,但数据库没有附加上,请教各位数据库和Delphi高手们帮忙。
- 使用 OpenPictureDialog1出现错误
var
i:Integer;
begin
i:=5000;
try
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.text:='UPDate se set summ='+i+' where se='a'';
ADOQuery1.ExecSQL;
except
end end;
var
i:Integer;
begin
i:=5000;
try
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.text:='UPDate se set summ='+inttostr(i)+' where se=''a''';
ADOQuery1.ExecSQL;
except
end end;
i:Integer;
begin
i:=5000;
try
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.text:='UPDate se set summ=:summ where se=:se';
ADOQuery1.Parameters.ParamByName('summ').value := i;
ADOQuery1.Parameters.ParamByName('se').value := 'a';
ADOQuery1.ExecSQL;
except
end end;
改成:
var
i:Integer;
begin
i:=5000;
try
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add(' update se set summ=:summ_ where se = ''a''');
ADOQuery1.Parameters.ParamByName('summ_').value := i;
ADOQuery1.ExecSQL;
except
end end;