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 'show database CREATE DATABASE [Da] USE PETSTORE' at line 3 mysql> use petstore ERROR 1049 (42000): Unknown database 'petstore' mysql> create database [da] -> use petstore -> -> CREATE TABLE USERS (user_id VARCHAR(30), password -> VARCHAR(30), first_name VARCHAR(50), last_name VARCHAR(50)); 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 '[da] ========== whats the wrong with this work , what code is correct when i ma trying to make a new table and a new databse in this mysql commend line ?
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 'show
CREATE DATABASE [Da]
USE PETSTORE' at line 3
mysql> use petstore
ERROR 1049 (42000): Unknown database 'petstore'
mysql> create database [da]
-> use petstore
->
-> CREATE TABLE USERS (user_id VARCHAR(30), password
-> VARCHAR(30), first_name VARCHAR(50), last_name VARCHAR(50));
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 '[da]
==========
whats the wrong with this work ,
what code is correct when i ma trying to make a new table and a new databse in this mysql commend line ?
Trending now
This is a popular solution!
Step by step
Solved in 2 steps