Is it possible to rename a table in Firebird?

房东的猫 提交于 2019-12-08 19:42:03

问题


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


回答1:


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.




回答2:


It is possible to change the column name by:

ALTER TABLE "tableName" ALTER "columnName" TO "NewColumnName";


来源:https://stackoverflow.com/questions/12291919/is-it-possible-to-rename-a-table-in-firebird

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!