Giter Site home page Giter Site logo

dummy-data-sql's Introduction

Dummy Data For SQL

Create Database

CREATE database dummy_db;

Switch to newly created Database

use dummy_db;

Create Table

CREATE TABLE dummy_table(
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(20) NOT NULL,
email VARCHAR(50) NOT NULL,
phone VARCHAR(12) NOT NULL UNIQUE,
address VARCHAR(100) NOT NULL
)
COLLATE='utf8_unicode_ci'
ENGINE=InnoDB;

Populate Table with Data

INSERT INTO dummy_table (
    name,email,phone,address
) VALUE 
('Fleta','[email protected]','701699851287','Oroville, California(CA), 95965'),
('Chaim','[email protected]','750505899489','Saint Clair, Michigan(MI), 48079'),
('Edwardo','[email protected]','647425551898','Huson, Montana(MT), 59846'),
('Crystal','[email protected]','977320203783','Advance, North Carolina(NC), 27006'),
('Volkman','[email protected]','300455467155','Bradley, South Carolina(SC), 29819'),
('Ratke','[email protected]','639250689901','North Las Vegas, Nevada(NV), 89032'),
('Milo','[email protected]','922477582831','La Crescent, Minnesota(MN), 55947'),
('Dennis','[email protected]','189908557298','District Heights, Maryland(MD), 20747'),
('Oberbrunner','[email protected]','418353671265','Barnum, Minnesota(MN), 55780'),
('Bernhard','[email protected] ','120805006252','Riverdale, Georgia(GA), 30296'),
('Prohaska','[email protected]','735731303813','Crocker, Missouri(MO), 65452'),
('Madelynn','[email protected]','108559524195','Trumann, Arkansas(AR), 72472'),
('Aaliyah','[email protected]','671469364061','Thibodaux, Louisiana(LA), 70301'),
('Vincenzo','[email protected]','564937057383','Norfolk, Massachusetts(MA), 02056'),
('Bertha','[email protected]','304717293689','Marcus Hook, Pennsylvania(PA), 19061'),
('Margie','[email protected]','437530444982','Klamath, California(CA), 95548'),
('Farrell','[email protected]','903776075565','Social Circle, Georgia(GA), 30025'),
('Adelia','[email protected]','255799550898','Alto, Texas(TX), 75925'),
('Haven','[email protected]','000152458990','Declo, Idaho(ID), 83323');

Show all Table's data

SELECT * FROM dummy_table;

OUTPUT

+----+-------------+-------------------------------+--------------+---------------------------------------+
| id | name        | email                         | phone        | address                               |
+----+-------------+-------------------------------+--------------+---------------------------------------+
| 1 | Fleta       | roel.shanahan@example.org     | 701699851287 | Oroville, California(CA), 95965       |
| 2 | Chaim       | randi.sanford@example.com     | 750505899489 | Saint Clair, Michigan(MI), 48079      |
| 3 | Edwardo     | tyson95@example.com           | 647425551898 | Huson, Montana(MT), 59846             |
| 4 | Crystal     | crawford.schuster@example.com | 977320203783 | Advance, North Carolina(NC), 27006    |
| 5 | Volkman     | tessie.feeney@example.net     | 300455467155 | Bradley, South Carolina(SC), 29819    |
| 6 | Ratke       | kristofer.kihn@example.org    | 639250689901 | North Las Vegas, Nevada(NV), 89032    |
| 7 | Milo        | sbailey@example.com           | 922477582831 | La Crescent, Minnesota(MN), 55947     |
| 8 | Dennis      | hackett.emely@example.org     | 189908557298 | District Heights, Maryland(MD), 20747 |
| 9 | Oberbrunner | olen84@example.com            | 418353671265 | Barnum, Minnesota(MN), 55780          |
| 10| Bernhard    | rogahn.lester@example.com     | 120805006252 | Riverdale, Georgia(GA), 30296         |
| 11| Prohaska    | fritz.blanda@example.com      | 735731303813 | Crocker, Missouri(MO), 65452          |
| 12| Madelynn    | kitty.kilback@example.net     | 108559524195 | Trumann, Arkansas(AR), 72472          |
| 13| Aaliyah     | ucollier@example.com          | 671469364061 | Thibodaux, Louisiana(LA), 70301       |
| 14| Vincenzo    | sabina.johns@example.net      | 564937057383 | Norfolk, Massachusetts(MA), 02056     |
| 15| Bertha      | woodrow15@example.net         | 304717293689 | Marcus Hook, Pennsylvania(PA), 19061  |
| 16| Margie      | lonie18@example.net           | 437530444982 | Klamath, California(CA), 95548        |
| 17| Farrell     | tre91@example.org             | 903776075565 | Social Circle, Georgia(GA), 30025     |
| 18| Adelia      | quincy.sauer@example.com      | 255799550898 | Alto, Texas(TX), 75925                |
| 19| Haven       | allan39@example.org           | 000152458990 | Declo, Idaho(ID), 83323               |
+----+-------------+-------------------------------+--------------+---------------------------------------+
19 rows in set (0.001 sec)

dummy-data-sql's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.