← Back to team overview

maria-discuss team mailing list archive

Question about mariadb 10.2 "rows" keyword


Hi everyone,

Apologies I am not a native english speaker so my english will be weird
and database is not my specialty, but I would just like to ask something
about mariadb specifically version 10.2

I just recently upgraded to 10.2 from 5.5 and somewhat we had problem
displaying our data. Anyway we've traced the issue, after trying to
replicate the database, to a specific table.
What we found is that when we create a table with a column named "rows"
it would return an error.

MariaDB [test]> create table test (rows int);
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 'rows int)' at line 1

Only by using `` as in `rows` to create the column would we be able to
do it successfully.
MariaDB [test]> create table test (`rows` int);
Query OK, 0 rows affected (0.02 sec)

I haven't had any other issue but just this specific keyword and we have
not successfully seen any documentation regarding this.

Thank you everyone in advance.


Follow ups