removeall - How to remove everything after certain character in SQL? -


i've got list 400 rows +. each row looks similar this: example-example123 remove past '-' i'm left beginning part: example123 appreciated.

you can use sql trim() function

select trim(trailing '-' bhexlivesqlvs1-live61mssql)
trailing_trim
table;

the result should "bhexlivesqlvs1"


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -