Get object DDL definition
hana_get_ddlRetrieve the CREATE statement (DDL) for SAP HANA objects like tables, views, procedures, functions, triggers, and sequences directly from SYS.OBJECT_DEFINITION.
Instructions
Retrieve the DDL (CREATE statement) for a TABLE, VIEW, PROCEDURE, FUNCTION, TRIGGER, or SEQUENCE from SYS.OBJECT_DEFINITION. Requires appropriate privileges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_name | Yes | Object name | |
| object_type | No | Optional filter: TABLE, VIEW, PROCEDURE, FUNCTION, TRIGGER, SEQUENCE | |
| schema_name | No | Schema name (defaults to HANA_SCHEMA) |