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

Опубликовано: 14 Октябрь 2024
на канале: Code In The Data Base
67
2

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
);