Write a postgre SQL statement to create a table named countries, including columns country_id, country_name and region_id and make sure that the country_id column will be a key field which will not contain any duplicate data at the time of insertion.
The above statement can be written like below.
Code:
Output:
Here is the command to see the structure of the created table :