Alguém poderia me ajudar a diagnosticar o erro ?
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database controle_compras
-> ;
ERROR 1007 (HY000): Can't create database 'controle_compras'; database exists
mysql> use controle_compras;
Database changed
mysql> create table compras(id int auto increment primary key. valor double. data date. recebido boolean. observacoes varchar(255));
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'auto increment primary key. valor double. data date. recebido boolean. observaco' at line 1
mysql> create table compras(id int auto_increment primary key. valor double. data date. recebido boolean. observacoes varchar(255));
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '. valor double. data date. recebido boolean. observacoes varchar(255))' at line 1
mysql> create table compras(id int auto_increment primary key. valor double. data date. recebido boolean. observacoes varchar(255));