0 votes
in Sqoop by
How will you update the rows that are already exported? Write sqoop command to show all the databases in MySQL server.

1 Answer

0 votes
by

By using the parameter – update-key we can update existing rows. Comma-separated list of columns is used which uniquely identifies a row. All of these columns are used in the WHERE clause generated UPDATE query. All other table columns will be used in the SET part of the query.

The command below is used to show all the databases in MySQL server.

$ sqoop list –databases –connect jdbc:mysql://database.test.com/

Related questions

0 votes
asked Dec 22, 2022 in Sqoop by SakshiSharma
+1 vote
asked May 11, 2021 in Linux by rajeshsharma
...