Tag: databases
Questions Related to databases
-
%ROWCOUNT
-
%ISOPEN
-
%NOTFOUND
-
%COUNT
-
Begin Dbms_output.put_line('Heello World'); exception when others then Dbms_output.put_line('error'); end; /
-
Begin null; End;
-
Declare a varchar2(100) := 'Hello World'; Begin Dbms_output.put_line(a); exception when others then Dbms_output.put_line('error'); end; /
-
begin Dbms_output.put_line('Heello World'); end; /
-
1, 2 and 4 are true
-
all statements are valid
-
Only 4 an d 5 are true
-
1, 4 and 5 are true
-
Case [ TRUE | selector_variable ]] When [criteria1 | expression1 ] then criteria1_statements; When [criteria1 | expression1 ] then Criteria2_statements; Else block statement; end;
-
Case value case [criteria1 | expression1 ] then criteria1_statements; case [criteria1 | expression1 ] then Criteria2_statements; Else block statement; end case;
-
Case [ TRUE | selector_variable ]] When [criteria1 | expression1 ] then criteria1_statements; When [criteria1 | expression1 ] then Criteria2_statements; Else block statement; end case;
-
Case [ TRUE | selector_variable ]] Loop When [criteria1 | expression1 ] then criteria1_statements; When [criteria1 | expression1 ] then Criteria2_statements; Else block statement; end Loop;
-
The exception B will be handled in inner block
-
The exception B will be handled in outer block exception handler
-
The exception will not be handled as there is no handler defined for B in inner block
-
The exception section in inner block is executed and also Outer block exception section as we have defined there too
-
There is no error in the statement
-
Exception handler is missing
-
DBMS_OUTPUT.PUT_LINE package must be declared
-
semicolon is missing in the line "Dbms_output.put_line(‘Hello world’)"
-
For cursor fetching we have to use Cursor For loops
-
There is no close statement for closing the cursor statement
-
No errors in the block
-
No exception handler found
-
No errors in the block
-
ORA-04091: table PLSQL.employees is mutating. Trigger/function may not see it. ORA-06512: at PL/SQL "DBMS_CALL_SQL"
-
There is no exception handler in the function
-
No rows updated exception will occur
-
If the function exists, it will be dropped and replaced with the new version created by the statement.
-
If the function does not exist, it will create a new one.
-
No action will be taken
-
There is no such option available.