| <<< Voltar | Avançar >>> |
19. Excluindo tabelas
Para excluir tabelas use o comando:
drop table TABELA;
Exemplo:
mysql> show tables; +-------------------+ | Tables_in_exemplo | +-------------------+ | cliente | | pedido | +-------------------+ 2 rows in set (0.01 sec) mysql> drop table pedido; Query OK, 0 rows affected (0.03 sec) mysql> show tables; +-------------------+ | Tables_in_exemplo | +-------------------+ | cliente | +-------------------+ 1 row in set (0.00 sec) mysql>
| <<< Voltar | Avançar >>> |