Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I rename a table in MonetDB?

How can I rename a table in monetdb? The typical SQL statement ALTER TABLE name RENAME TO new_name is not supported.

like image 780
pic Avatar asked Oct 22 '25 18:10

pic


1 Answers

Also consider creating a SQL view with the new name, e.g. CREATE VIEW newname AS SELECT * FROM oldname;

This has the advantage of no data being copied around at all.

like image 176
Hannes Mühleisen Avatar answered Oct 27 '25 03:10

Hannes Mühleisen