Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
DROP ROUTINE
Prev UpSQL CommandsHome Next

DROP ROUTINE

DROP ROUTINE — remove a routine

Synopsis

DROP ROUTINE [ IF EXISTS ]name [ ( [ [argmode ] [argname ]argtype [, ...] ] ) ] [, ...]    [ CASCADE | RESTRICT ]

Description

DROP ROUTINE removes the definition of an existing routine, which can be an aggregate function, a normal function, or a procedure. See underDROP AGGREGATE,DROP FUNCTION, andDROP PROCEDURE for the description of the parameters, more examples, and further details.

Examples

To drop the routinefoo for typeinteger:

DROP ROUTINE foo(integer);

This command will work independent of whetherfoo is an aggregate, function, or procedure.

Compatibility

This command conforms to the SQL standard, with thesePostgres Pro extensions:

  • The standard only allows one routine to be dropped per command.

  • TheIF EXISTS option

  • The ability to specify argument modes and names

  • Aggregate functions are an extension.

See Also

DROP AGGREGATE,DROP FUNCTION,DROP PROCEDURE,ALTER ROUTINE

Note that there is noCREATE ROUTINE command.


Prev Up Next
DROP ROLE Home DROP RULE
epubpdf
Go to Postgres Pro Standard 11
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp