简体   繁体   English

Postgres:如何删除名称中包含双引号的模式?

[英]Postgres: How to drop a schema which has a double quote included in its name?

I have a schema called "tenant__xyz" in my db but need to drop it.我的数据库中有一个名为"tenant__xyz"的模式,但需要删除它。

How can I do this?我怎样才能做到这一点? Thank you in advance先感谢您

You need to double the double quotes (similar to doubling the single quotes in a string value)您需要将双引号加倍(类似于将字符串值中的单引号加倍)

drop schema """tenant__xyz""";

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM