13

Is it possible to rename a table in Firebird or I should create a new table and then move the data using insert?

Yoh Deadfall
  • 2,711
  • 7
  • 28
  • 32
zac
  • 4,495
  • 15
  • 62
  • 127

2 Answers2

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