![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions An embedded sql statement may return a number of rows while the programming language can only access one row at a time. The programming device called a cursor controls the position of the row. Latest Answer : hi friends, In DB2 actually we use CURSOR when there are more than one row to be fetched in a SELECT statement. ... The three data types are DATE, TIME and TIMESTAMP. CHAR can be used to specify the format of each type. The DAYS function calculates the number of days between two dates. (It's Y2K compliant). Latest Answer : DATE PIC X(10)TIME PIC X(8)TIMESTAMP PIC X(26) ... SQL statements may return any number of rows, but most host languages deal with one row at a time by declaring a cursor that presents each row at a unique isolation level. Cursor stability means that DB2 takes a lock on the page the cursor is accessing and releases the lock when the cursor moves to another page. Latest Answer : Cursor stability isolation level ensures that any row that was changed by an application process cannot be read untill committed by that process. It ensures that the current row of every updatable cursor is not changed by other application process. ... The clause avoids closing the cursor and repositioning it to the last row processed when the cursor is reopened. Latest Answer : To explain it let us take an example....Suppose we have a query that updates a table once the task is complete the table gets updated(commit), and all the relevant resources acquired by the task is released..With hold option does not release the resouces ... This is a key concept for any relational database. Isolation level is the manner in which locks are applied and released during a transaction. For DB@ a 'repeatable read' holds all locks untile Latest Answer : Isolation level means the extent to which the transaction isolates the data is accessed ... Latest Answer : Cursor stands to the first record sorted by the field given in order by clause of cursor declaration. ... Latest Answer : You will declare the Cursor with "WITH HOLD " Option when you want the cursor to be pointing to the next row even after the fetch from the db2 table and you exit from the program until expilicit commit is performed to updated to Db2 and Close cursor ... Latest Answer : Char function returns a character format of date or time. ... Read Answers (1) | Asked by : csr What is difference between defining the DB2 cursor in working storage section and in procedure division? How does it affects to Cobol-DB2 program if the cursor is defined in working storage section and if defined in procedure section. Read Answers (1) | Asked by : Ambrish Kulkarni
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||