-3
phpmyadminでSQLを実行しようとしていますが、gettin tisエラーが表示されていて、間違っている箇所が見つかりません。#1064 - SQL構文に誤りがあります。
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'use android_api /** Selecting Database **/
以下の私のコード:
create database android_api /** Creating Database **/
use android_api /** Selecting Database **/
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
); /** Creating Users Table **/
の間にスペースが必要: #1064 - あなたのSQL構文でエラーが発生している。あなたのMariaDBに対応マニュアルをご確認を正しい構文のサーバーバージョンは、 'create table users( id int(11)primary key auto_increment、 unique_id var' 2行目付近で使用されます。 –
回答が編集されました。 –