---
title: "DB2逗号转义字符"
author: "cserw3c"
date: "2014-03-31T11:55:57Z"
tags: []
categories: ["数据库"]
slug: "db2"
draft: false
lastmod: "2014-03-31T11:55:57Z"
id: 2038774
url: "https://solomon2012.iteye.com/blog/2038774"
---

```SQL
SELECT REPLACE('A;B;C',';',''',''') as tt  FROM gp_OPERATOR where ID=1;
```

DB2中，逗号转义结果就是A','B','C