oracle数据库如何用SQL将图片文件写入表中的字段中 你用什么前台开发工具,不同的语言存图片的方法不一样delphi和pb简单些,vb就复杂点 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 delphi的table+dbimage直接就可以存图片。query+dbimage稍麻烦些 create table demo( id int primary key, theBlob blob)/create or replace directory my_files as '/export/home/tkyte/public_html';declare l_blob blob; l_bfile bfile;begin insert into demo values ( 1, empty_blob() ) returning theBlob into l_blob; l_bfile := bfilename( 'MY_FILES', 'aria.gif' ); dbms_lob.fileopen( l_bfile ); dbms_lob.loadfromfile( l_blob, l_bfile, dbms_lob.getlength( l_bfile ) ); dbms_lob.fileclose( l_bfile );end;/ http://expert.csdn.net/Expert/topic/955/955769.xml?temp=7.835025E-02 请教一个日期的问题 怎样在loop中让这个红色的主键不重复呢? 高手帮忙oracle存储过程问题 Oralce 写函数的问题 如何取出oracle中某个表的数据结构,也就是所有列名,并放到一个dataset or datatable中? OMS 服务不能启动 请教Oracle Developer 2000在那里有下载 数据导出问题求教,谢谢 oracle9i安装后怎么找不到有关开发的帮助文档? oracle 的sql 语句如何转换成sql server 的sql 语句 如何在sql中设定精度 要SQL的查询结果集中的数据按照继承关系排序该怎么写。
query+dbimage稍麻烦些
( id int primary key,
theBlob blob
)
/create or replace directory my_files as '/export/home/tkyte/public_html';declare
l_blob blob;
l_bfile bfile;
begin
insert into demo values ( 1, empty_blob() )
returning theBlob into l_blob; l_bfile := bfilename( 'MY_FILES', 'aria.gif' );
dbms_lob.fileopen( l_bfile ); dbms_lob.loadfromfile( l_blob, l_bfile,
dbms_lob.getlength( l_bfile ) ); dbms_lob.fileclose( l_bfile );
end;
/