Q:

Write a postgre SQL statement to insert NULL values into region_id column for a row of countries table

0

Write a  postgre SQL statement to insert NULL values into region_id column for a row of countries table.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

INSERT INTO countries (country_id,country_name,region_id) 
VALUES('C3','UK',NULL);

Here is the command to see the list of inserting rows :

postgres=# SELECT * FROM countries;
 country_id | country_name | region_id
------------+--------------+-----------
 C1         | India        |      1002
 C2         | USA          |
 C3         | UK           |
(3 rows)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now