Search
 
SCRIPT & CODE EXAMPLE
 

SQL

CREATE DATABASE IF NOT EXISTS

CREATE DATABASE IF NOT EXISTS my_db;
Comment

mysql create database if not exists

write create database "the database name you want" then semi colon. Then the new database can be created.
Example: create database sushine;
you write the name of databse you want instead of sunshine
to use database write as i said bellow
use database sunshine;
Comment

PREVIOUS NEXT
Code Example
Sql :: display all databases 
Sql :: stpop start psql server 
Sql :: wilayah indonesia database 
Sql :: Remove mySQL from ubuntu 20.x 
Sql :: Cannot load driver class: com.mysql.cj.jdbc.Driver 
Sql :: postgres kill running query 
Sql :: sql add year to date 
Sql :: how to remove tables from postgresql 
Sql :: update password postgres user 
Sql :: sql server version query 
Sql :: postgresql change column type 
Sql :: sqlite rename column 
Sql :: oracle select first 10 rows 
Sql :: postgres delete from where date is greater than specific date 
Sql :: sql drop schema 
Sql :: find names starting with vowels in sql 
Sql :: mysql last 6 months 
Sql :: oracle user last connection date 
Sql :: postgresql print variable 
Sql :: change varchar length mysql 
Sql :: mysql increment value by 1 in update 
Sql :: group_concat limit mysql 
Sql :: how to give user privelege to create dblink in oracle 
Sql :: mysql remove ubuntu 
Sql :: how much every mysql database record takes from diskspace 
Sql :: how to check database size mysql 
Sql :: ordering by issue with 4 digit numbers in sql 
Sql :: Mysql Workbench takes very long time to execute the first query 
Sql :: sql select roundup column 
Sql :: sql random sampling per group 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =