auto incremente ?

203 views
Skip to first unread message

Coustillas Pierre-Adrien

unread,
Jun 24, 2016, 8:16:57 AM6/24/16
to MariaDB ColumnStore
Hi,

is that auto_increment are possible ?

MariaDB [mcs]> CREATE TABLE `test_numauto` (   `num_auto` int(11) NOT NULL AUTO_INCREMENT,   `id_unique` int(11) NOT NULL ) ENGINE=columnstore;
ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key

MariaDB [mcs]> CREATE TABLE `test_numauto` (   `num_auto` int(11) NOT NULL AUTO_INCREMENT,   `id_unique` int(11) NOT NULL,PRIMARY KEY (`num_auto`) ) ENGINE=columnstore;
ERROR 1069 (42000): Too many keys specified; max 0 keys allowed


Thnaks


Pierre

Dipti Joshi

unread,
Jun 24, 2016, 9:11:59 AM6/24/16
to Coustillas Pierre-Adrien, MariaDB ColumnStore
Yes auto_increment is possible.

The syntax for it is different though.


Thanks,
Dipti

--
You received this message because you are subscribed to the Google Groups "MariaDB ColumnStore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mariadb-columns...@googlegroups.com.
To post to this group, send email to mariadb-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mariadb-columnstore/e2132b19-52e6-4e02-b30c-bf1c78825a7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Coustillas Pierre-Adrien

unread,
Jun 24, 2016, 11:40:49 AM6/24/16
to MariaDB ColumnStore
merci :-)
Reply all
Reply to author
Forward
0 new messages