Quantcast
Channel: How to remove characters from end of field in MySql database - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by SteveCav for How to remove characters from end of field in MySql...

Use SUBSTRING and LENGTH to trim the field. Something like UPDATE MyTable SET MyField=SUBSTRING(MyField,1,LENGTH(MyField)-4) WHERE MyField LIKE '%<br>'

View Article



Answer by yaronli for How to remove characters from end of field in MySql...

You can use the TRIM function in mysql. UPDATE items SET descriptions = TRIM(TRAILING "<br>" FROM descriptions) The TRIM usage is here.

View Article

Answer by Glenn for How to remove characters from end of field in MySql database

I don't have a mysql instance to test, but something like this would probably do it: UPDATE myTable SET myCol = TRIM(TRAILING '<br>' FROM myCol); Take a look at some of the string functions.

View Article

How to remove characters from end of field in MySql database

I am looking for a way to remove some characters from the end of a field in my MySql database. Say I have a table called 'items' and there is a field called 'descriptions', some of those descriptions...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images