Z
zhoufujin
Unregistered / Unconfirmed
GUEST, unregistred user!
有一个表:
abc
Name varchar(10),Image_1 Bolb,Image_2 Blob
用TQuery1 操作这个表
有两个TImage(Image1,Image2),内有JPG图像,
如何用TQuery.SQl去更新Image_1和Image_2字段?
With TQuery1 Do
Begin
Close;
SQL.Clear;
SQl.Add(Update abc set Image_1=:Image_1,Image_2=:Image_2 ');
SQl.Add( 'Where Name=:Name');
Params[0].AsBlob:=????;//AsBlob是STRING类型,如何把Image1.Picture.Graphic与之对应?
Params[1].AsBlob:=????;//AsBlob是STRING类型,如何把Image2.Picture.Graphic与之对应?
Params[2]:='王小虎';
EXECSQL;
End;
各位帮个忙吧
abc
Name varchar(10),Image_1 Bolb,Image_2 Blob
用TQuery1 操作这个表
有两个TImage(Image1,Image2),内有JPG图像,
如何用TQuery.SQl去更新Image_1和Image_2字段?
With TQuery1 Do
Begin
Close;
SQL.Clear;
SQl.Add(Update abc set Image_1=:Image_1,Image_2=:Image_2 ');
SQl.Add( 'Where Name=:Name');
Params[0].AsBlob:=????;//AsBlob是STRING类型,如何把Image1.Picture.Graphic与之对应?
Params[1].AsBlob:=????;//AsBlob是STRING类型,如何把Image2.Picture.Graphic与之对应?
Params[2]:='王小虎';
EXECSQL;
End;
各位帮个忙吧