I have a column url where all the values are urls. I\'m trying to update the value of a different column where-ever the aforementioned url ends with .pdf
url
.pdf
You can use a LIKE condition with a leading wildcard. %.pdf means the column must end in .pdf
%.pdf
UPDATE mytable SET newcolumn = 'PDF found' WHERE yourcolumn LIKE '%.pdf'
Alternatively you could use the right() function
right()
UPDATE mytable SET newcolumn = 'PDF found' WHERE right(yourcolumn,4) = '.pdf'