PostgreSQL - CREATE & ALTER INDEX




CREATE INDEX

To create a B-tree index on the column title in the table films:
CREATE UNIQUE INDEX title_idx ON films (title);

ALTER INDEX


ALTER INDEX distributors RENAME TO suppliers;
ALTER INDEX name RENAME TO new_name

Comments

Popular posts from this blog

Physical Representation of MYSQL Tables