What is the difference between Primary Key only and Primary Key constraint? -


i new sql , if question silly please forgive ignorance.

what difference between primary key , primary key constraint?

difference between this

create table customers(    id   int              not null,    primary key (id, name) 

and this

create table customers(    id   int              not null,   constraint [pk_id_name] primary key (id, name) 

thank you, dash

well, same (you have constraint in both cases), difference can give name constraint in second version.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -