# Insert

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-database/insert
>
> Inserts a record into a database table, like an SQL INSERT, with options to ignore database masks and duplicate quotes.

Inserts a record on the specified Database Table.

Action available for the following operating systems:

![OS Supported: Android, iOS, Win, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/01_Supported_OS-5c02a51fd5080a410a07ee3ef72b6872.png)

### Parameters

* **Table** - Database Table where to insert the new record.
* **Values** _\<string> or \<numeric> -_ Value to assign to the specified _Column_. This expression will be evaluated accordingly with the _Type_ column.
* **Ignore Database Masks -** If you've defined a _Output_ Mask for the specified _Column_ in the _Table_ properties and:
  * This option is **checked** - You must specify the value in the Kalipso format.
  * This option is **unchecked** - You must specify the value in the Mask format.
* **Duplicate Quotes** - Check this option to automatically duplicate the _quote_ (') character on the _Values_ specified, to correctly insert the record in the database. For further information take a look at the examples below.

### Usage

This function generates an SQL Insert operation that exists in every SQL database, and is used to insert a record in the database.

Consider you want to insert records in the following Database Table:

| **Products** |          |           |
| ------------ | -------- | --------- |
| **Code**     | **Name** | **Stock** |
| _empty_      | _empty_  | _empty_   |

#### Example 1

| **Table**            | Products |                      |
| -------------------- | -------- | -------------------- |
| **Columns**          | **Type** | **Values**           |
| Code                 | Numeric  | 100                  |
| Name                 | String   | "Coca Cola 'Updated" |
| Stock                | Numeric  | 400                  |
|                      |          |                      |
| **Duplicate Quotes** | No       |                      |

**Result:**

| **Products** |          |           |
| ------------ | -------- | --------- |
| **Code**     | **Name** | **Stock** |
| _empty_      | _empty_  | _empty_   |

:::warning
It originates a syntax error because parameter **Duplicate Quotes** is disabled, therefore no record is inserted.
:::

#### Example **2**

| **Table**            | Products |                      |
| -------------------- | -------- | -------------------- |
| **Columns**          | **Type** | **Values**           |
| Code                 | Numeric  | 100                  |
| Name                 | String   | "Coca Cola 'Updated" |
| Stock                | Numeric  | 400                  |
|                      |          |                      |
| **Duplicate Quotes** | Yes      |                      |

**Result:**

| **Products** |                    |           |
| ------------ | ------------------ | --------- |
| **Code**     | **Name**           | **Stock** |
| 100          | Coca Cola 'Updated | 400       |
