- 背景:多行数据作为select的where查询条件,数据库里直接找能找到,但select查询不到
- 数据
AAA
BBB
CCC
select ratmplid from certificates where privka = 'AAA
BBB
CCC
';
查询不到数据,修改如下
select ratmplid from certificates where privka = E'AAA\nBBB\nCCC\n';
也可以借助在线工具批量替换,在线多行文本连接成一行 (lddgo.net)
标签:AAA,查询,转义字符,CCC,PostgreSQL,where,select From: https://www.cnblogs.com/daizichuan/p/18454356