MySQL Tutorial for Beginners 28 - MySQL Primary Key

preview_player
Показать описание
In this post we will learn how to In this post we will learn How to Use MySQL Primary Key By Examples. A Primary key is a key that uniquely identifies a row in each table. Primary keys enforce entity integrity by uniquely identifying entity instances.
Primary Key Constraints
A primary key serves as the unique identifier for rows in the table.
The syntax of the primary key constraint (following the Constraint keyword and the constraint name, if they're specified) is
Primary Key( column-name, ... )
Each primary key column's definition must include Not Null.
A table definition can have no more than one primary key constraint.

But first let's see What is MySQL . MySQL is a very popular, open source database. Officially pronounced “my Ess Que Ell” (not my sequel). Handles very large databases; very fast performance.
Why are we using MySQL? Free (much cheaper than Oracle!)
Each student can install MySQL locally. Easy to use Shell for creating tables, querying tables, etc.Easy to use with Java JDBC. While installing MySQL, it will prompt you to create a root password . At this stage please select a safe and secure password . Make sure you remember the password, to use it later.MySQL tutorial for beginners and professionals with examples on CRUD, insert statement, select statement, update statement, delete statement, use database, keys, joins etc.

MySQL Database is world's most popular open source database because of its consistent fast performance, high reliability and ease of use. MySQL has Open Source License i.e. it has free GNU General Public License. SQL (Structured Query Language) is the language used to insert and retrieve content. Clients make queries on the database to Retrieve, Insert, Update or Delete content.

#MySQL #MySQLTutorial #ProgrammingKnowledge
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

how will I make my primary key like this:
18-0001
18-0002
18-0003
and so forth

castro