Answer by Art for SQL to remove partial text from value
Here's another example that should work in any SQL as functions used are ANSI SQL standard. This example assumes that there is a whitespace between word 'WEB' and first digit. But it can be improved. I...
View ArticleAnswer by Darren Kopp for SQL to remove partial text from value
UPDATE Table SET Version = Replace(Version, 'Web ','') WHERE Version LIKE 'WEB %'
View ArticleAnswer by Brian Webster for SQL to remove partial text from value
The REPLACE feature of MySQL, SQL Server, and PostGres will remove all occurrences of WEB with a blank. Selecting SELECT REPLACE(Version, 'WEB ', '') FROM MyTable Updating UPDATE MyTable SET Version =...
View ArticleAnswer by jdennison for SQL to remove partial text from value
In postgres this would be: select substring(Version from 5 for 3) from table where Version like '%WEB%'
View ArticleSQL to remove partial text from value
How would I write the SQL to remove some text from the value of records if it exists. Version Column data ------------------ WEB 1.0.1 WEB 1.0.1 1.0.2 1.0.2 I would like to update all records that...
View Article