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 :: postgres cast as decimal 
Sql :: how to truncate all table in mysql workbench 
Sql :: how to find sql server agent jobs related to a database 
Sql :: how to drop all tables in postgresql 
Sql :: postgres set column based on another column 
Sql :: sql upsert 
Sql :: oracle create table auto generated primary key 
Sql :: get sql instance name 
Sql :: postgres create extension if not exists 
Sql :: create new schema mysql 
Sql :: select sequence oracle 
Sql :: mysql cdn link 
Sql :: row number mssql 
Sql :: syntaxerror unexpected identifier mysql 
Sql :: n highest salary in sql 
Sql :: list of all table names in sql server databse 
Sql :: mysql dump specific tables 
Sql :: sql server select first day of previous year 
Sql :: how to run mysql on terminal mac 
Sql :: events mysql 
Sql :: temp table vs variable table in sql server 
Sql :: remove space in sql server 2012 
Sql :: sqlalchemy return id after insert 
Sql :: select 2 rows in sql 
Sql :: date format mysql 
Sql :: oracle temporary table 
Sql :: test the postgresql db connection 
Sql :: pyspark sql row get value 
Sql :: between from sql 
Sql :: ERROR 3948 (42000): Loading local data is disabled; this must be enabled on both the client and server sides 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =