im trying to create a table using mysql and phpmyadmin with the w
CREATE DATABASE android_api
USE 'android_api'
CREATE TABLE users(
id INT(11) PRIMARY KEY AUTO_INCREMENT,
unique_id VARCHAR(23) NOT NULL UNIQUE,
NAME VARCHAR(50) NOT NULL,
email VARCHAR(100) NOT NULL UNIQUE,
encrypted_password VARCHAR(80) NOT NULL,
salt VARCHAR(10) NOT NULL,
created_at DATETIME,
updated_at DATETIME NULL
);
but i keep recieving an error :
1064 - 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 'android_api' CREATE TABLE users( id INT(11) PRIMARY KEY AUTO_INCREMEN' at line 3
i was wondering if anybody could help me
NOTE - i have tried putting '' around the database name and id, unique_id and so on.