mysql> CREATE DATABASE cadastro
-> USE cadastro
-> CREATE TABLE (nome varchar(50),telefone integer not null,codigo integer not null auto_increment,PRIMARY KEY (codigo));
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 'USE cadastro
CREATE TABLE (nome varchar(50),telefone integer not null,codigo int' at line 2
mysql>
-> USE cadastro
-> CREATE TABLE (nome varchar(50),telefone integer not null,codigo integer not null auto_increment,PRIMARY KEY (codigo));
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 'USE cadastro
CREATE TABLE (nome varchar(50),telefone integer not null,codigo int' at line 2
mysql>
Comment