> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/data-types/numeric-data-types/numeric-data-types-dec.md).

# DEC

See [DECIMAL](/docs/server/reference/data-types/numeric-data-types/decimal.md).

## EXAMPLES

```sql
CREATE TABLE dec_example (
  example DEC
);
```

```sql
SHOW CREATE TABLE dec_example\G
```

```sql
*************************** 1. row ***************************
       Table: dec_example
Create Table: CREATE TABLE `dec_example` (
  `example` decimal(10,0) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
```

<sub>*This page is: Copyright © 2025 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}
