Hello,
I am trying to alter the name of a column in a table in my PostgreSQL database by editing it in the HeidiSQL table tab. However when I press 'Save' a Syntax Error pops up. I am trying to alter the column name from "Capacity derating (%)" to "Capacity derating 0.5 - 1C (%)"
The automatic ALTER CODE made by my editing the column name is:
ALTER TABLE "Data"
ALTER COLUMN "Capacity derating 0.5-1C (%)" REAL NULL DEFAULT NULL;
COMMENT ON COLUMN "Half-cell extracted data"."Capacity derating 0.5-1C (;
;
This is the syntax error:
I thought this would be the SQL code needed to alter a column name:
ALTER TABLE "Data"
RENAME COLUMN "Capacity derating (%)" TO "Capacity derating 0.5 - 1C (%)";
I don't know if my column name is not allowed?
I'm using HeidiSQL version 10.1.0.5510 with PostgreSQL 11.
This requires changes in a code area which did not touch for a long time. Have to make some spring-cleaning in November here :)
Renaming a column should work now on PostgreSQL. Besides changing
Most helpful comment
Renaming a column should work now on PostgreSQL. Besides changing