drop primary key,not null,unique,default and check constraints from columns in a table

preview_player
Показать описание
This video explains how to drop primary key,not null,unique,default and check constraints with or without constraint name in a table

Рекомендации по теме
Комментарии
Автор

Thanks for this video, it was quick and on point video without any extra things. Great work.

rohanroychoudhury
Автор

this video is very use full for me ... thanks

hackthink
Автор

THANKS A LOT IT HAS BEEN REALLY HELPFUL

jayseagal
Автор

Could you please tell me the difference in drop delete truncate?

mivaangadewadvlogs
Автор

Hello Ms, actually i was trying to use drop constraint statement in Ms. Access Sql but its not working if we dont mention the constraint

yashrastogi
Автор

I have got the following code in SMSS and I cannot handle it, it doesn't work.
alter table Persons
drop primary key;

error: Msg 156, Level 15, State 1, Line 10
Incorrect syntax near the keyword 'primary'.

What is wrong here?

create table Persons(
PersonID int not null primary key,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
);

vicvic
Автор

It's not working for unique constraints without name

gomatisao
Автор

You've not told clearly, how to drop a check constraint without knowing the constraint was supposed to be here for that only.

shahrukhahmad