NATIONAL CHAR

USAGE

NATIONAL CHAR[(<number_of_bytes_per_value>)]
   [{CHARACTER SET | CHARSET} <charset_name>]
   [COLLATE <collation_name>]

DETAILS

Data Type

Minimum Number of Bytes

Maximum Number of Bytes

NATIONAL CHAR

0 (the default is 1)

1023

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

While Xpand accepts the NATIONAL CHAR data type on table create, it is silently replaced with CHAR:

CREATE TABLE national_char_example (
   example NATIONAL CHAR(32)
);
SHOW CREATE TABLE national_char_example\G
*************************** 1. row ***************************
       Table: national_char_example
Create Table: CREATE TABLE `national_char_example` (
  `example` char(32) CHARACTER SET utf8
) CHARACTER SET utf8 /*$ SLICES=3 */

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES