PostgreSQL PGCES-02 Exam - Topic 1 Question 98 Discussion
I would like to insert the contents of the text file users.dat into the table t1 using psql.Contents of text file users.dat: Definition of table t1: CREATE TABLE t1 (uname TEXT, pass TEXT, id INTEGER); Select the most appropriate input from those below.
A) \copy t1 FROM users.dat WITH DELIMITER ':'
B) \copy t1 TO users.dat WITH DELIMITER ':'
C) INSERT INTO t1 FROM file('users.dat');
D) INSERT INTO t1 SELECT uname, pass, id FROM file('users.dat');
E) \insert t1 FROM users.dat WITH DELIMITER ':';
Monte
5 hours agoRegenia
5 days agoMelissa
11 days agoKasandra
16 days agoDorothy
2 months agoGlendora
2 months agoLauran
3 months agoBecky
3 months agoLea
3 months agoIn
3 months ago