Which command is used to connect to a database in DB2 ? Give the Syntax.
Answer / 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 |
What is correlation names?
how to resolve -805 . how to see dbrm and package not found
What is innodb buffer pool?
How to check sequence on a table in db2?
Explain about dbrm.
What is the maximum size of varchar data type in db2?
Why do we use cursor?
How to handle null values in db2
Lot of updates have been done on a table due to which indexes have gone haywire. What do you do?
Q4. How will you get the count of record without using COUNT verb in query?
Select empno, sal from emptbl where empno < 101.By this query can we fetch first 100 recs? where empno is primary key.It won't throw -811 error? if it wont,then what is use of cursor technique while fetching first 100 recs. Please need more clarification.
DB2: A calls B once sucessfull and second time when it calls says curson is open why is it so?