Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Semestr2 / 1 - Oracle / 13-DDL-other.ppt
Скачиваний:
23
Добавлен:
12.05.2015
Размер:
152 Кб
Скачать
☆

Creatingi and Removingi Synonyms

•• Creater te a shortenedrt name forf r thet

DEPT_SUM_VU viewi ..

 

 

 

 

 

 

SQL>

CREATE SYNONYM d_sum

 

 

2

FOR

dept_sum_vu;

 

 

Synonym Created.

 

 

 

 

 

 

 

 

 

 

 

 

•• Dropr a synonym..

SQL> DROP SYNONYM d_sum;

Synonym dropped.

13-23

Summary

•• Automaticallyt ti lly generater te sequence numbersrs by usingi a sequence generatorr t r..

•• Viewi sequence informationi f r ti inin thet

USER_SEQUENCES datata dictionaryi ti ry tablet le..

•• Creater te indexesi toto improvei r queryry retrievalr tri l speed..

•• Viewi indexi informationi f r ti inin thet

USER_INDEXESI dictionaryi ti ry tablet le..

•• Use synonyms toto provider i alternativelt r ti names forf r objectsj ts..

13-24

Practicei Overviewi

•Creating sequences

•Creating sequences

•Using sequences

•Using sequences

•Creating nonunique indexes

•Creating nonunique indexes

•Display data dictionary information about sequences and indexes

•Display data dictionary information about sequences and indexes

•Dropping indexes

•Dropping indexes

13-25

Соседние файлы в папке 1 - Oracle