mysql> drop table compras (id int auto_increment primary key, valor double, data date, observacoes varchar(255), recebido boolean);
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 '(id int auto_increment primary key, valor double, data date, observacoes varchar' at line 1
mysql> create table compras (id int auto_increment primary key, valor double, data date, observacoes varchar(255), recebido boolean);
Query OK, 0 rows affected (0.71 sec)
mysql> desc compras;
+-------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| valor | double | YES | | NULL | |
| data | date | YES | | NULL | |
| observacoes | varchar(255) | YES | | NULL | |
| recebido | tinyint(1) | YES | | NULL | |
+-------------+--------------+------+-----+---------+----------------+
5 rows in set (0.07 sec)
mysql> insert into compras (1500.0. '2014-05-14', 1, "Geladeira Nova Porque A Velha Quebrou');
"> insert into compras (valor, data, recebido, observacoes) values (1500.0. '2014-05-14', 1, "Geladeira Nova Porque A Velha Quebrou');
'> select*from compras;
'> select * from compras;
'> select * from compras;
'> desc compras;
'> select * from compras;
'>
Não estou conseguindo utilizar a ferramenta select.