How to create table in MariaDB?

user1564141 picture user1564141 · Dec 16, 2015 · Viewed 14k times · Source

When I try to create simple table via HeidiSQL I'm getting an error like this

enter image description here

CREATE TABLE `prg_config` (
    `id` INT NULL AUTO_INCREMENT,
    `name` VARCHAR(50) NULL DEFAULT '',
    `value` VARCHAR NULL DEFAULT ''
) COLLATE='utf8_bin';

Answer

Jyoti Sharma picture Jyoti Sharma · Dec 16, 2015

Please Check Following query :

CREATE TABLE prg_config (
     `id` INT NOT NULL AUTO_INCREMENT,
     `name` VARCHAR(50) NULL DEFAULT '',
     `value` VARCHAR(50) NULL DEFAULT '',
     PRIMARY KEY (id)
)COLLATE='utf8_bin';