怎样才能把硬盘上的BMP图片插入到库中。能说能详细点吗? textcopy /S yourservername /D Northwind /T tablename /C yourcolumn /W "where a = 3 " /F yourbmp.bmp /I /Z 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 where 语句根据你的要求写textcopy 工具位置你自己找找看 这是用TADOQUERY 的方法String stSql = "declare @nIndex int " " select @nIndex= max( picture_Id ) from s_picture_library" " if( @nIndex is null ) set @nIndex = 0 " " set @nIndex = @nIndex + 1 " " insert into picture_library( picture_Id,picture_Name," " Picture_Type_id,picture_Content,Picture_UpdateTime)" " values(@nIndex,:Pic_Name,:Pic_Type,:Pic_Content,getdate())" ; ptQuery->Close() ; ptQuery->SQL->Clear(); ptQuery->SQL->Add( stSql ) ; //ptQuery->SQL->Add( "update a_pic_library set pic_name=:pic_name,pic_type=:Pic_Type,pic_content=:pic_content " ) ; ptQuery->Parameters->ParamByName( "Pic_Type" )->Value = OpenDialog1->FilterIndex - 1 ; ptQuery->Parameters->ParamByName( "pic_name" )->Value = ExtractFileName( OpenDialog1->FileName ); ptQuery->Parameters->ParamByName( "pic_content" )->LoadFromFile( OpenDialog1->FileName, ftBlob ); ptQuery->ExecSQL() ; 关于JS调用与URL传值的问题 存储过程中用游标循环判断非常慢(提问中含业务需求) 请高手答疑!避免同时处理的问题 数据截取的问题 一个触发器(update,delete),怎样判断当前操作是update还是delete 请问:如何用VB实现将图片导入ACCESS数据库 在线等待!!!请大家帮忙!!!!! 在线等 这种需求,sql代码怎么解决 SQL的基础问题 升级了,送分,谢谢大家 问题求教!!!!!!!!!!!!!!!!
" select @nIndex= max( picture_Id ) from s_picture_library"
" if( @nIndex is null ) set @nIndex = 0 "
" set @nIndex = @nIndex + 1 "
" insert into picture_library( picture_Id,picture_Name,"
" Picture_Type_id,picture_Content,Picture_UpdateTime)"
" values(@nIndex,:Pic_Name,:Pic_Type,:Pic_Content,getdate())" ;
ptQuery->Close() ;
ptQuery->SQL->Clear();
ptQuery->SQL->Add( stSql ) ;
//ptQuery->SQL->Add( "update a_pic_library set pic_name=:pic_name,pic_type=:Pic_Type,pic_content=:pic_content " ) ;
ptQuery->Parameters->ParamByName( "Pic_Type" )->Value = OpenDialog1->FilterIndex - 1 ;
ptQuery->Parameters->ParamByName( "pic_name" )->Value = ExtractFileName( OpenDialog1->FileName );
ptQuery->Parameters->ParamByName( "pic_content" )->LoadFromFile( OpenDialog1->FileName, ftBlob ); ptQuery->ExecSQL() ;