急 高手进 IMAGE字段追加数据

zhangby1 2009-03-17 11:40:50
image字段中有一块二进制数据,在不覆盖这些数据的情况下向IMAGE字段中追加一块新的数据,要求不借助临时表。高手帮帮忙。
如:
IMAGE
011111001011001100001100
加上10000000000000000011
得到新的数据
IMAGE
01111100101100110000110010000000000000000011

...全文
99 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
JonasFeng 2009-03-18
  • 打赏
  • 举报
回复
又开眼界了
qizhengsheng 2009-03-17
  • 打赏
  • 举报
回复
这个还没有搞过
学习
ws_hgo 2009-03-17
  • 打赏
  • 举报
回复
关注..
htl258_Tony 2009-03-17
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 zhangby1 的回复:]
谢谢你
你的办法在ACCESS中好像不行
有没有在ACCESS中可以实现的办法
[/Quote]可以出引EXCEL批量加完后再引入吗
dawugui 2009-03-17
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 zhangby1 的回复:]
谢谢你
你的办法在ACCESS中好像不行
有没有在ACCESS中可以实现的办法
[/Quote]
那你去access版问.
dawugui 2009-03-17
  • 打赏
  • 举报
回复
create table PE_Soft(SoftIntro IMAGE )
insert into PE_Soft
select '011111001011001100001100'

declare @ptr binary(16)
select @ptr=textptr(SoftIntro) from PE_Soft
updatetext PE_Soft.SoftIntro @ptr null 0 '10000000000000000011'
select * from PE_Soft

drop table PE_Soft

zhangby1 2009-03-17
  • 打赏
  • 举报
回复
谢谢你
你的办法在ACCESS中好像不行
有没有在ACCESS中可以实现的办法
dawugui 2009-03-17
  • 打赏
  • 举报
回复
--更新text字段的值
create table PE_Soft(SoftIntro text,ChannelID integer)
insert into PE_Soft
select 'aaa ',1004
union all
select 'bbb ',1003
union all
select 'ccc ',1002

declare @ptr binary(16)
select @ptr=textptr(SoftIntro) from PE_Soft where ChannelID=1002
updatetext PE_Soft.SoftIntro @ptr null 0 'testing '
select * from PE_Soft

drop table PE_Soft

/*
SoftIntro ChannelID
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -----------
aaa 1004
bbb 1003
ccc testing 1002

(所影响的行数为 3 行)

*/

22,181

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧