You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Expected behavior
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 (%)";
Possible solution
I don't know if my column name is not allowed?
Environment
I'm using HeidiSQL version 10.1.0.5510 with PostgreSQL 11.
The text was updated successfully, but these errors were encountered:
naoma123
changed the title
Syntax error when altering column name
Syntax error when altering column name with HeidiSQL
Apr 3, 2019
Steps to reproduce this issue
Current behavior
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:
Expected behavior
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 (%)";
Possible solution
I don't know if my column name is not allowed?
Environment
I'm using HeidiSQL version 10.1.0.5510 with PostgreSQL 11.
The text was updated successfully, but these errors were encountered: