PostgreSQL_CE
PGCES-02 · Question #29
The following table called 'company' is defined as follows: id | name ----+------------------ 1 | Pgsql,inc. 2 | Postgres Co.,Ltd 3 | SQL Company. Select the most appropriate psql command for…
The correct answer is E. \copycompany TO company.txt CSV. See the full explanation below for the reasoning.
Question
The following table called 'company' is defined as follows:
id | name ----+------------------ 1 | Pgsql,inc. 2 | Postgres Co.,Ltd 3 | SQL Company. Select the most appropriate psql command for generating a text file company.txt on the client side with the following content:
1,"Pgsql,inc." 2,"Postgres Co.,Ltd" 3,SQL Company.
Options
- A\copycompany TO 'company.txt' WITH ','
- B\copycompany TO 'company.txt' WITH DELIMITER AS ','
- C\copy company TO 'company.txt' DELIMITER ','
- D\copycompany TO "company.txt"
- E\copycompany TO company.txt CSV
How the community answered
(17 responses)- A12% (2)
- B6% (1)
- C6% (1)
- E76% (13)
Community Discussion
No community discussion yet for this question.