redshift drop table with + and spaces in name
-
08-10-2020 - |
Pregunta
I have a table that a user created which appears to be from a python variable that never interpolated.
afsproddb01=# \dt+ *transtable*
List of relations
schema | name | type | owner | description
--------+-----------------+-------+--------+-------------
public | + transtable + | table | usiapp |
(1 row)
I am unable to drop it, I can only describe it with the \dt+ and wildcard method. Can anyone point me in the right direction?
Solución
I was able to answer my own question, a co worker was able to see a space in front of the first plus sign. I was not seeing this, so quoted drop worked.
afsproddb01=#drop table " + transtable +";
DROP TABLE
Licenciado bajo: CC-BY-SA con atribución
No afiliado a dba.stackexchange