Results 1 to 10 of 10

Thread: Problem added text to the end of existing text field...

Hybrid View

  1. #1
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Problem added text to the end of existing text field...

    Which database system are you using?

    Assuming SQL Server (I think that's the message it shows!), you could try this:
    Code:
    userReadID = Cast(userReadID as VarChar(Length(userReadID)))+ '12,'
    ..note that this will only work if the length of the field is within the limits of the VarChar data type.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Posts
    170

    Re: Problem added text to the end of existing text field...

    Sorry to ask a stupid question, but will the code look like this:

    Code:
    UPDATE notificationMessageTbl SET userReadID = Cast(userReadID as VarChar(Length(userReadID)))+ '12,'
    Also I am using SQLServer

    Thanks

    Simon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width