覆
覆雨翻云
Unregistered / Unconfirmed
GUEST, unregistred user!
小弟用Stream实现将一文本文件存入BLOB字段(Oracle),源代码如下
mystream:=TFileStream.Create('c:/test.txt',fmopenread);
try
TBlobField(ClientDataSet1.FieldByName('TXT')).LoadFromStream(mystream);
finally
ClientDataSet1.ApplyUpdates(-1);
mystream.Free;
end;
不知什么原因,数据好象存不进去,我用SQL Explorer查看,提示
General SQL error.
ORA-00936:missing expression
deltails显示为 BDE Error: 13059 [$33][$3]
General SQL error.
Server Error: 936
ORA-00936:missing expression
是不是中间层设置有问题(我怀疑)?小弟是菜鸟,初学DELPHI,请各位大虾多多指教!
mystream:=TFileStream.Create('c:/test.txt',fmopenread);
try
TBlobField(ClientDataSet1.FieldByName('TXT')).LoadFromStream(mystream);
finally
ClientDataSet1.ApplyUpdates(-1);
mystream.Free;
end;
不知什么原因,数据好象存不进去,我用SQL Explorer查看,提示
General SQL error.
ORA-00936:missing expression
deltails显示为 BDE Error: 13059 [$33][$3]
General SQL error.
Server Error: 936
ORA-00936:missing expression
是不是中间层设置有问题(我怀疑)?小弟是菜鸟,初学DELPHI,请各位大虾多多指教!