CS157b
Chris Pollett
Feb 12, 2018
Action on file | Dense Index | Sparse Index |
---|---|---|
Create Blocks | none | insert if sequential |
Delete Blocks | none | delete if sequential |
Insert | insert also into index | update(?) |
Delete | delete also from index | update(?) |
Slide | update | update(?) |
CREATE TABLE SOME_TABLE_NAME ( /*def of columns */ ) PCTFREE 15 PCTUSED 75;
Which of the following statements is true?
CREATE INDEX MY_INDEX ON MY_TABLE(MY_FIELD_1, ..., MY_FIELD_n);
Movie(title, year, length, genre, studioName, producerCertificateNo) Studio(name, address, presidentCertificateNo)Suppose a common query is:
SELECT title, year FROM Movie, Studio WHERE presidentCertificateNo = zzz AND Movie.studioName = Studio.name;
ALTER TABLE my_table ADD FULLTEXT(column1, column2,..)