tabelas:
ALTER TABLE table_name RENAME TO new_table_name;
ou RENAME table_name TO new_table_name;
vistas:
RENAME view_name TO new_view_name;
colunas:
ALTER TABLE test RENAME COLUMN col1 TO id;
constraints:
ALTER TABLE test RENAME CONSTRAINT test1_pk TO test_pk;
indices:
ALTER INDEX index_name RENAME TO new_index_name;
sequencias:
RENAME sequence_name TO new_sequence_name;
synonym privado:
RENAME synonym_name TO new_synonym_name;
Tablespaces (com algumas restrições):
ALTER TABLESPACE tablespace_name RENAME TO new_tablespace_name;
No comments:
Post a Comment
Os comentários são moderados.
The comments are moderated.