I have a vertica database and I need to describe some tables. In MySQL you use describe table_name
. And I know that in vertica it's \d table_name
.
Also I need to do it throw python, but when I make query:
cur.execute("\d table_name")
I get this problem:
vertica_python.errors.VerticaSyntaxError: Severity: ERROR, Message: Syntax error at or near "\", Sqlstate: 42601, Position: 1, Routine: base_yyerror, File: /scratch_a/release/vbuild/vertica/Parser/scan.l, Line: 1004, SQL: '\\d table_name'
Is there another way to get columns and columns type in vertica?