dbml
dbml copied to clipboard
You have a syntax error at "test.sql" line 5 column 3. Expected ")" or fields but "K" found.
CREATE TABLE `test` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`gid` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `gid` (`gid`) USING BTREE
);
any one care to comment ?
I think the SQL should be:
CREATE TABLE `test` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`gid` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `gid` USING BTREE (`gid`)
);
I tested the above SQL, and it works.
This is a SQL dump by mysqldump.
hi @TeaNguyen
this will not work if you have a lot tables dump my mysql tools. I hope DBML can support mysqldump without extra work.
@TeaNguyen
Mysql also use this:
PRIMARY KEY (`id`) USING BTREE,
DBML can not parse it.
I check with atlas and it work.