Is it possible to rename a table in Firebird or I should create a new table and then move the data using insert?
Asked
Active
Viewed 1.3k times
13
-
2See http://www.firebirdfaq.org/faq363/ – Martijn Pieters Sep 18 '15 at 18:41
-
See also: http://tracker.firebirdsql.org/browse/CORE-2486 – Lukas Eder Jan 21 '21 at 13:43
2 Answers
9
Apparently not.
You must either create a new table, copying over old values or create a view with the intended name which is identical to the original table.
See http://www.firebirdfaq.org/faq363/ for further details.

Morten Christiansen
- 19,002
- 22
- 69
- 94
-6
It is possible to change the column name by:
ALTER TABLE "tableName" ALTER "columnName" TO "NewColumnName";

Daniel
- 42,087
- 4
- 55
- 81

Gianluca Pasqualato
- 135
- 1
- 1
- 8