Learn how to create a primary key constraint in SQL using a step-by-step approach. Explore two out of the three commonly used methods for this task and gain a solid understanding of effectively implementing primary keys in your database tables. Enhance your SQL skills with this informative guide.
create table table_name(
field1 number,
field2 varchar2(20),
field3 date,
constraint constraint_name primary key(field1) --put any field
);