delphi sql 图片

insert into 学生相片 values('2','2','2','2','2',
(SELECT * FROM
OPENROWSET
(BULK 'F:\2.jpg', single_blob) AS a));

 

update 学生相片 set
Photo =
(SELECT * FROM
OPENROWSET
(BULK 'F:\psb.jpg', single_blob) AS a) where id=3;

posted @ 2015-09-06 09:30  草原羊  阅读(180)  评论(0编辑  收藏  举报