Drop Index: Teradata vs Oracle Syntax

Teradata

Syntax:

DROP INDEX index_name ON tablename;
--or
DROP INDEX(column1, column2, ..., columnN) ON tablename;

Example 1:

Dropping index named idx_dept from employee.

DROP INDEX idx_dept ON employee;

Example 2:

Dropping an index that is not named. The following drops the index on (dept_number, emp_number) columns in the employee table:

DROP INDEX (dept_number,emp_number) ON employee;

Oracle

Syntax:

DROP INDEX idx_dept;

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s