---
name: "DB.execPrepared"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/DB.execPrepared"
---

# DB.execPrepared(3kaya)

Execute a prepared statement

## NAME

DB::execPrepared - Execute a prepared statement

## SYNOPSIS

**DBResult execPrepared(** *DBStatement\<a\>  statement, \[Maybe\<String\> \] params* **)**

## ARGUMENTS

**statement** The prepared database statement

**params** A list of parameters to be inserted into the query. An Exception may be thrown if the number of parameters does not match the expected number. **nothing**  should be used for parameters that are to be replaced by **NULL** \
  If none of the parameters are NULL, then the other version of this function may be easier to use.

## DESCRIPTION

Execute a prepared statement, replacing parameters as specified. A single prepared statement may be used by multiple **execPrepared**  functions, which increases efficiency.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**DB.DBResult (3kaya)**

**DB.DBStatement (3kaya)**

**DB.exec (3kaya)**

**DB.execPrepared\_1 (3kaya)**

**DB.incExecPrepared (3kaya)**

**DB.prepare (3kaya)**
