MySQL is database , and SQL language used access data.
What is a Database?
It is a collection of data in a format that can be easily accessed.
Why databases?
- can store large data.
- features like security, scalability etc.
- Easier to insert, update or delete data.
SQL (Structured Query Language)
SQL is a programming language used to interact with relational databases.
schema - coloum (design)
toople - rows
What are Keys?
Keys are special columns in the table
Primary Key
It is a column (or set of columns) in a table that uniquely identifies each row. (a unique id)
There is only 1 PK & it should be NOT null.
Foreign Key
A foreign key is a column (or set of columns) in a table that refers to the primary key in another table.
FKs can have duplicate & null values.
There can be multiple FKs.
uske liye ek line ham use karenge
0 Comments