adspace


Which command is used to connect to a database in DB2 ? Give the Syntax.

Answer Posted / Anupam Shukla

To connect to a DB2 database using the command line, you can use the `db2 connect` command. The syntax would look like this: `db2 connect to <database> user <username> using <password>`. For connecting through SQL, you can use the `CONNECT` statement in your SQL script.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2

2122


What is the latest version of ibm db2?

1372


have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1809