![]() |
![]()
| ![]() |
![]()
NAMEDROP_STATISTICS - remove extended statistics SYNOPSISDROP STATISTICS [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ] DESCRIPTIONDROP STATISTICS removes statistics object(s) from the database. Only the statistics object's owner, the schema owner, or a superuser can drop a statistics object. PARAMETERSIF EXISTS Do not throw an error if the statistics object does not
exist. A notice is issued in this case.
name The name (optionally schema-qualified) of the statistics
object to drop.
CASCADE
These key words do not have any effect, since there are
no dependencies on statistics.
EXAMPLESTo destroy two statistics objects in different schemas, without failing if they don't exist: DROP STATISTICS IF EXISTS COMPATIBILITYThere is no DROP STATISTICS command in the SQL standard. SEE ALSOALTER STATISTICS (ALTER_STATISTICS(7)), CREATE STATISTICS (CREATE_STATISTICS(7))
|