23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

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.

DROP SYNONYM<br />

Syntax<br />

Drops the specified synonym.<br />

PUBLIC<br />

Specifies that the synonym was created with the PUBLIC argument.<br />

SYNONYM synonym<br />

Name for the synonym.<br />

Example The following is an example of the DROP SYNONYM statement:<br />

DROP SYNONYM<br />

Notes • If DROP SYNONYM specifies PUBLIC and the synonym was not a public synonym, <strong>SQL</strong><br />

generates the “base table not found” error.<br />

DROP TABLE<br />

Syntax<br />

DROP [ PUBLIC ] SYNONYM synonym ;<br />

DROP SYNONYM customer ;<br />

DROP PUBLIC SYNONYM public_suppliers ;<br />

• If DROP SYNONYM does not specify PUBLIC and the synonym was created with the PUBLIC<br />

argument, <strong>SQL</strong> generates the “base table not found” error.<br />

Authorization<br />

Must have DBA privilege or ownership of the synonym (for DROP SYNONYM).<br />

Related statement<br />

CREATE SYNONYM<br />

Deletes the specified table.<br />

DROP TABLE [ owner_name.]table_name ;<br />

owner_name<br />

Specifies the owner of the table.<br />

table_name<br />

Names the table to drop.<br />

Example The following is an example of the DROP TABLE statement:<br />

33

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

Saved successfully!

Ooh no, something went wrong!