filmov
tv
Basic SQL: Creating a Primary Key Constraint - Step-by-Step (One of Three Methods)

Показать описание
In this step-by-step tutorial, learn how to create a primary key constraint in SQL. Explore one of the three available methods for adding a primary key to a table. Follow along as we walk you through the process, allowing you to easily enhance your database skills
create table table_name(
field1 number primary key,
field2 varchar2(20),
field3 date
);
create table table_name(
field1 number primary key,
field2 varchar2(20),
field3 date
);