Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql create database

CREATE DATABASE mydatabase CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
Comment

create database in mysql

The CREATE DATABASE statement is used to create a new SQL/MySQL database.

Syntax
CREATE DATABASE databasename;

CREATE DATABASE Example
The following SQL statement creates a database called "testDB":

Example
CREATE DATABASE testDB;
Comment

create database in mySQL

CREATE DATABASE nameOfYourDatabase;
USE nameOfYourDatabase;
CREATE TABLE nameOfTable(
id INT AUTO_INCREMENT,
   first_name VARCHAR(100),
   last_name VARCHAR(100),
   email VARCHAR(50),
   password VARCHAR(20),
   PRIMARY KEY(id)
);
Comment

create mysql database

mysql -u username -p
CREATE DATABASE dbname;
Comment

create database in mysql

mysql> CREATE DATABASE pets;
Query OK, 1 row affected (0.01 sec)
Comment

create a database mysql

CREATE DATABASE `mydb`;
Comment

mysql create database

CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
    [create_option] ...

create_option: {
    [DEFAULT] CHARACTER SET [=] charset_name
  | [DEFAULT] COLLATE [=] collation_name
}
Comment

PREVIOUS NEXT
Code Example
Sql :: sql date between one week 
Sql :: select top values sql 
Sql :: creating a database sql 
Sql :: change date in pivot table to month in sql server 
Sql :: what does leave do in mysql 
Sql :: sql like with multiple values 
Sql :: how to save postgresql query 
Sql :: how to switch database in psql 
Sql :: get last inserted primary key 
Sql :: mariadb check constraint example? 
Sql :: wp_query raw sql 
Sql :: to_sql pandas 
Sql :: postgres execute multiple sql file from command line 
Sql :: SQL Addition Operator 
Sql :: oracle select 
Sql :: Join multiple table by MySQL 
Sql :: sql remove duplicates based on column 
Sql :: Should I use the datetime or timestamp data type in MySQL? 
Sql :: .sql File Run in PSQL 
Sql :: sql double quotes in string 
Sql :: cardinality example sql 
Sql :: join multiple tables in sql same table 
Sql :: mysql drop tables 
Sql :: mysql 5 minutes ago 
Sql :: mysql isshow 
Sql :: sql on-premises 
Sql :: PDOException: SQLSTATE[HY093]: Invalid parameter numb 
Sql :: homebrew nysql launch 
Sql :: create relationship with betwen two tables in postgersql 
Sql :: T-SQL - Where Used List (Table/View) 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =