mysql - Can anyone please rectify this error in the below SQL code? -


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 **/ 

enter image description here

i'm running on mysql 5.5

add ";"

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 **/ 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -