12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using <strong>SQL</strong> Data Definition Language StatementsExample 6–28Dropping a Sequence-- drop the sequenceDROP SEQUENCE new_employees_seq;6.6.7 Creating and Dropping a SynonymExample 6–29 creates a synonym that is alias for the employees table. For moreinformation on synonyms, see Managing Synonyms.Example 6–29Creating a Synonym-- create a synonym for the employees tableCREATE SYNONYM emps for HR.employees;-- query the employees table using the emps synonymSELECT employee_id, last_name FROM emps WHERE employee_id < 105;Example 6–30 drops a synonym.Example 6–30 Dropping a Synonym-- drop the synonymDROP SYNONYM emps;6-18 <strong>SQL</strong> <strong>Developer</strong> Online Help

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!