{
    "mode": "man",
    "parameter": "EXECUTE",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/EXECUTE/7/json",
    "generated": "2026-05-30T05:10:04Z",
    "synopsis": "EXECUTE name [ ( parameter [, ...] ) ]",
    "sections": {
        "NAME": {
            "content": "EXECUTE - execute a prepared statement\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "EXECUTE name [ ( parameter [, ...] ) ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "EXECUTE is used to execute a previously prepared statement. Since prepared statements only\nexist for the duration of a session, the prepared statement must have been created by a\nPREPARE statement executed earlier in the current session.\n\nIf the PREPARE statement that created the statement specified some parameters, a compatible\nset of parameters must be passed to the EXECUTE statement, or else an error is raised. Note\nthat (unlike functions) prepared statements are not overloaded based on the type or number of\ntheir parameters; the name of a prepared statement must be unique within a database session.\n\nFor more information on the creation and usage of prepared statements, see PREPARE(7).\n",
            "subsections": []
        },
        "PARAMETERS": {
            "content": "name\nThe name of the prepared statement to execute.\n\nparameter\nThe actual value of a parameter to the prepared statement. This must be an expression\nyielding a value that is compatible with the data type of this parameter, as was\ndetermined when the prepared statement was created.\n",
            "subsections": []
        },
        "OUTPUTS": {
            "content": "The command tag returned by EXECUTE is that of the prepared statement, and not EXECUTE.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Examples are given in Examples in the PREPARE(7) documentation.\n",
            "subsections": []
        },
        "COMPATIBILITY": {
            "content": "The SQL standard includes an EXECUTE statement, but it is only for use in embedded SQL. This\nversion of the EXECUTE statement also uses a somewhat different syntax.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "DEALLOCATE(7), PREPARE(7)\n\n\n\nPostgreSQL 14.23                                2026                                      EXECUTE(7)",
            "subsections": []
        }
    },
    "summary": "EXECUTE - execute a prepared statement",
    "flags": [],
    "examples": [
        "Examples are given in Examples in the PREPARE(7) documentation."
    ],
    "see_also": [
        {
            "name": "DEALLOCATE",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/DEALLOCATE/7/json"
        },
        {
            "name": "PREPARE",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/PREPARE/7/json"
        }
    ]
}