SqlServer delphi执行存储过程报错
SqlServer delphi执行存储过程报错@id int,
@content image ,
@gamename varchar(200)
AS
BEGIN
declare @temp varbinary(500)
declare @tmpid int =-1
declare @sql varchar(500)
print @tmpid
select @tmpid=id from dbo.ActivityPlayers where <a href="mailto:id=@id">id=@id</a>
print @tmpid
if @tmpid =-1
begin
insert into dbo.ActivityPlayers (id) values(@id)
end
set @temp=CONVERT(varbinary(500),@content)
set @sql='update dbo.ActivityPlayers set <a href="mailto:'+@gamename+'='+CONVERT(varchar(1000">'+@gamename+'='+CONVERT(varchar(1000</a>), @temp)+' where id='+convert(varchar(20),@id)
print @sql
exec(@sql)
END
参看下这个链接https://q.cnblogs.com/q/104924/ 建议数据库字段直接使用image类型 发下报错信息 换个ID
页:
[1]