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
Rank group by
StackOverflow_53799678
Campeonato 3 bilhoes
QLSV
SQL ASSESSMENT
how can i mix both querys
sql
TUAN 7_QUAN LY DE TAI
QLDT DB
Comercio