我想在postgresql中重命名table的列名。xyz“在table_1中不存在,而im对它有错误。但我特别需要找出列"xyz“是否存在,然后将其重命名。有没有什么方法可以让我使用像(select * from table_1 where column_name="xyz")这样的查询,因为这样'exists‘可能会返回true,"xyz“在表<
有人错误地创建了一个所有列名都有前导空格的表。例如:'accountid‘现在是’accountid‘。ALTER TABLE mytable RENAME COLUMN ' accountid' TO 'accountid';Error : ERROR: syntaxerror at or near "' accoun