Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Function to remove pattern occurences in a string
CREATE Function [dbo].[RemovePattern](@Target NVARCHAR(1000), @Pattern NVARCHAR(100)) Returns NVARCHAR(1000) AS Begin While PatIndex(@Pattern, @Target) > 0 Set @Target = Stuff(@Target, PatIndex(@Pattern, @Target), 1, '') Return @Target End GO select dbo.RemovePattern('0000100001', '0%')
run
|
edit
|
history
|
help
0
sql-server-storing-wildcards-in-data
see a quell
Cine latino
Alquileres
db2
SQl_QUEST_2_PRESENTATION_IMG_COUNT
Caronas
Demo
test
Sql server 2012 features list