Does REPLACE function in SQL Server accept input from a table for 'string_pattern' parameter?

后端 未结 5 1370
清酒与你
清酒与你 2021-01-25 08:55

I\'m still learning my ropes with SQL Server and maybe this question sounds very naive/ridiculous. Please bear with me on this. :)

I saw a function in SQL Server defined

5条回答
  •  情话喂你
    2021-01-25 09:32

    Actually it will work with the table column and do a replace for each row in your table. But it only work because the @InputString variable is affected each time.

    Maybe you could use a local temporary table to store your NonNumeric

    Be carefull because you are returning a NVARCHAR value while @InputString is a VARCHAR.

提交回复
热议问题