Current location - Quotes Website - Collection of slogans - How does DB2 use the replace function to change commas in strings into quotation marks+commas+quotation marks, such as aa and bb into AA',' BB'?
How does DB2 use the replace function to change commas in strings into quotation marks+commas+quotation marks, such as aa and bb into AA',' BB'?
Let str = 'aa, bb, cc, dd, ee ';;

str.replace(/(,)/g," ' $ 1 ' ")

The results are as follows:

Hope to adopt!