2016-04-27 13 views
1

このSQLを動作させるのを手伝ってください。Jsonのデータ型がmariadbで機能しない

create table testjson(data json); 

jsonタイプのため、このクエリは機能しません。

ERROR 1064 (42000): 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)' at line 1 

私はmariadb10を使用しています。これはmysqlコマンドで接続したときの出力です。

$ mysql 
Welcome to the MySQL monitor. Commands end with ; or \g. 
Your MySQL connection id is 2 
Server version: 5.5.5-10.0.24-MariaDB mariadb.org binary distribution 

答えて

0

少なくとも古いバージョン5.5ではなく、JSONデータ型はありません。

関連する問題