Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Creating and deleting Primary Key constraint of Table and difference between Unique Key in MySQL

  • plus2net
  • 2021-12-13
  • 148
Creating and deleting Primary Key constraint of Table and difference between Unique Key in MySQL
Primary KeyAdding Primary Key to tableDeleting Primary KeyAlter table to add Primary KeyDrop Primary KeyUsing two columns to Add Primary KeyPrimary Key constraintsdifference between Primary Key and Unique KeyNull data and Primary KeyOne primary Key in one tableMultiple Unique key in tableNull data and Unique KeyIGNORE query with insertInsert commandDuplicate data in Primary KeyUnique Key and Null DataMultiple unique key in one table
  • ok logo

Скачать Creating and deleting Primary Key constraint of Table and difference between Unique Key in MySQL бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Creating and deleting Primary Key constraint of Table and difference between Unique Key in MySQL или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Creating and deleting Primary Key constraint of Table and difference between Unique Key in MySQL бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Creating and deleting Primary Key constraint of Table and difference between Unique Key in MySQL

00:40 Create table query
01:02 Adding Primary Key
02:41 Adding Primary Key to existing table
03:25 Dropping Primary Key
05:00 Adding data with Primary Key
08:26 Using IGNORE adding data
10:35 Using two columns as Primary Key
11:11 Example with Difference between Primary Key and Unique Key

We can add Primary Key to existing table by using ALTER table command
Primary Key will not allow duplicate data and at the same time Null data is also not allowed. WE can use two columns as primary key.
We can remove Primary Key by using DROP command
ALTER TABLE student DROP PRIMARY KEY
The main difference between Primary Key and unique key is here
Table can have one Primary key but can have multiple Unique Key
Null data is not allowed in Primary Key but Unique Key can have Null data
Indexing is clustered in Primary Key and it is non clustered in Unique Key
We can list the structure with Keys of a table by using SHOW
SHOW CREATE TABLE student
While adding data to Primary Key column in case of error due to validation no data is inserted. To ignore the error and to insert the valid data we can use IGNORE command.
INSERT IGNORE INTO `my_tutorial`.`student`
(`id` ,`name` ,`class` ,`mark` ,`gender`)
VALUES ('10', 'test name', 'Four', '55', 'male'),
('36', 'test name 2', 'Four', '57', 'male');
Source code is available here
https://www.plus2net.com/sql_tutorial...
#PrimaryKey #UniqueKey #PrimaryKeyUniqueKey #TableConstraints #QueryAddingKey #DeletingPrimalyKey #DropPrimaryKey #AddPrimaryKey #AlterTable #AddKey #AddingConstraints

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]