I am trying to create a table book
which tags
column datatype is json
But here is getting error message -
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'json DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB' at line 4
Query:
CREATE TABLE `book` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(200) NOT NULL,
`tags` json DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
How to support json
datatype in MySQL?