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.

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.