{
  "id": "postgres-prepared-statements-table",
  "kind": "table",
  "slug": "postgres-prepared-statements",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/postgres-prepared-statements/",
  "title": "PREPARE a PostgreSQL statement, then EXECUTE it with parameters",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "$1",
      "source": "PostgreSQL Global Development Group",
      "detail": "first parameter, by position"
    },
    {
      "name": "$2",
      "source": "PostgreSQL Global Development Group",
      "detail": "second parameter, and so on"
    },
    {
      "name": "unknown",
      "source": "PostgreSQL Global Development Group",
      "detail": "a type inferred from the context when possible"
    },
    {
      "name": "EXECUTE",
      "source": "PostgreSQL Global Development Group",
      "detail": "specify the actual values for these parameters"
    }
  ],
  "related_slugs": [
    "postgres-transactions",
    "postgres-explain",
    "postgres-psql-scripts"
  ],
  "license": "CC-BY-4.0",
  "source_license": "PostgreSQL License (PostgreSQL Global Development Group); PostgreSQL License (PostgreSQL Global Development Group); prose restates cited source lines in own words",
  "as_of": "2026-11-20",
  "status": "deep-draft-20261120",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}