DBMS Lab Steps - CMD Prompt
DBMS Lab Steps - CMD Prompt
https://sourceforge.net/projects/wampserver/files/WampServer%203/Wampee%203.1/
MySQL is an open-source RDBMS, owned by Oracle
1) Show databases
https://mariadb.com/kb/en/basic-sql-statements/
Table is a Database Object that holds, or contains, all of the data within that portion of the
database. It stores this data in named columns and numbered rows. Each row represents a
whole database record.
When creating our Table, we need to Specify the type of data its rows and columns will
hold.
varchar(size) - variable length string that can contain letters, numbers, & special
characters
boolean - Zero (or values that equate to 0) is false, non-zero is true ( 0- False / 1- True
)
float(size, d) - a number with total number size represented by size and the number of
characters after
the decimal represented by the d
CREATE TABLE Persons ( Personid int NOT NULL AUTO_INCREMENT=200, LastName varchar(255) , FirstName varchar(255), Age int,
PRIMARY KEY (Personid));
----------------------------------------------
CREATE TABLE Animals ( AnimalID NOT NULL AUTO_INCREMENT ,AnimalName CHAR(30) NOT NULL,Category char(10),Breed
varchar(20),Color varchar(20), PRIMARY KEY(AnimalID) );
----------------------------------------
----------------------------------------