--更新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

解决方案 »

  1.   

    我需要把text类型字段的值输出,应该怎么做呢
      

  2.   

    in .net inviroment,direct use text property to show the text field
      

  3.   


    create procedure pro1 

    @U_ID  int

    as 
    select 
    content 
    from table1 
    where 
    u_ID=@UID 
    go 
      

  4.   


    如果只去最前面一行记录的话
    create procedure pro1 

    @U_ID  int

    as 
    select top  
    content 
    from table1 
    where 
    u_ID=@UID 
    go 
      

  5.   

    如果只去最前面一行记录的话
    create procedure pro1 

    @U_ID  int

    as 
    select top 1
    content 
    from table1 
    where 
    u_ID=@UID 
    go