This document shows how to use MySQL by creating a database called shital, creating a table called person with fields pid, pname, city, country, inserting values into the person table, and selecting values from the person table.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
14 views2 pages
Create
This document shows how to use MySQL by creating a database called shital, creating a table called person with fields pid, pname, city, country, inserting values into the person table, and selecting values from the person table.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2
Copyright (c) 2000, 2024, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases
-> ^C mysql> show databases; //display inbuilt as well as created database. +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sakila | | sys | | world | +--------------------+ 6 rows in set (0.02 sec)
mysql> create database shital;
Query OK, 1 row affected (0.01 sec)
mysql> show databases;
+--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sakila | | shital | | sys | | world | +--------------------+ 7 rows in set (0.00 sec)
mysql> use shital; // use the database
Database changed mysql> show tables; //check is there any table existing in the database Empty set (0.01 sec)