> 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/string-data-types/national-char.md).

# NATIONAL CHAR

## Overview

Fixed-length string of specific character set with limit up to 255 bytes.

## Examples

```sql
CREATE TABLE national_char_example (
  example NATIONAL CHAR(32)
);
```

```sql
SHOW CREATE TABLE national_char_example\G
```

```sql
*************************** 1. row ***************************
       Table: national_char_example
Create Table: CREATE TABLE `national_char_example` (
  `example` char(32) CHARACTER SET utf8mb3 DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
```

## External References

Additional information is available [here](/docs/server/reference/data-types/string-data-types/varchar.md).

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

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