Jump to content

how can I append a text string to each row in a column


wright67uk

Recommended Posts

how can I append a text string to each row in a column?

 

I have a database with several columns;

 

ID, name, product, product_id, description etc.

 

the description column is made of BLOBS.

 

I need to add the same string of text to the end of each description in my table.

 

"  </p> </p> This tree has been recently potted at the end of bare root season.  "

 

Is this possible to do using 1 sql query?

 

I only have 20 or so products in this table so I could do this manually 20 times, but I thought it would be useful to know, especially if I have to add text to a table someday with 500 products in.

Link to comment
Share on other sites

Perfect, Thankyou!

 

For future reference , is this possible?

 

eg.  if later in the year I want to change

 

"  </p> </p> This tree has been recently potted at the end of bare root season.  "

to

"  </p> </p> This tree is a bare root product.  "

 

how can i search for the mentioned text string and change only that text string without effecting any text before it?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.