Respuesta: extraer solo lo que esta dentro de los parentesis Pues de esta manera declare @inicio int
declare @fin int
SELECT @inicio=charindex('(',cadena,0) from tabla
SELECT @fin=charindex(')',cadena,0) from tabla
update tabla
set
cadena=t1.cadena
from
(
SELECT substring(cadena,@inicio+1,(@fin-@inicio)-1) from tabla
) as t1
Seria algo asi :)
Saludos!!!
__________________ What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me |