Enviado em 17/09/2019 - 22:17h
Pessoas, estou me aventurando com mariadb e estou com erro na 1ª criação, onde estou errando ???
MariaDB [db_biblioteca]> CREATE TABLES tbl_livro( id_livro smallint AUTO_INCREMENT PRIMARY_KEY, nome_livro Varchar(50) NOT NULL, ISBN Varchar(30) NOT NULL, id_autor smallint NOT NULL, data_pub DATE NOT NULL, preco_livro decimal NOT NULL);
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 'TABLES tbl_livro( id_livro smallint AUTO_INCREMENT PRIMARY_KEY, nome_livro Varch' at line 1