exam questions

Exam 1z0-082 All Questions

View all questions & answers for the 1z0-082 exam

Exam 1z0-082 topic 1 question 11 discussion

Actual exam question from Oracle's 1z0-082
Question #: 11
Topic #: 1
[All 1z0-082 Questions]

Which two statements are true about the SET VERIFY ON command? (Choose two.)

  • A. It can be used only in SQL*Plus
  • B. It displays values for variables used only in the WHERE clause of a query
  • C. It can be used in SQL Developer and SQL*Plus
  • D. It displays values for variables created by the DEFINE command
  • E. It displays values for variables prefixed with &&
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
danito
Highly Voted 4 years ago
C D correct anwers
upvoted 12 times
elbelgounetos
3 years, 3 months ago
If guess D is a trap. If you use DEFINE and you're not using the variable, it'll never be displayed with SET VERIFY ON. Example : set verify on DEFINE dummy_char = 'X' SELECT * FROM dual
upvoted 7 times
antonica
2 months, 3 weeks ago
I agree
upvoted 1 times
...
...
...
Franky_T
Highly Voted 2 years, 2 months ago
Selected Answer: CE
The SET VERIFY ON command will enable the display of any substitution variable used in our last executed SQL statement. When you use the DEFINE clause to create a variable, and the variable is not used in the next SQL statement then that variable will not be "shown" by the SET VERIFY command. Oh, and the command is available in all apps that allow the execution of SQL language against your database.
upvoted 5 times
...
Abdullejr
Most Recent 4 days, 15 hours ago
Selected Answer: CD
The correct answer is C and D.
upvoted 1 times
...
RaNik69
1 year, 1 month ago
Selected Answer: CE
both tested
upvoted 1 times
...
J4vi
1 year, 1 month ago
Selected Answer: CE
I think C D E, but you can use DEFINE without & or && and VERIFY ON won't work, so C E seems to be the most correct then
upvoted 1 times
...
ivanadj
1 year, 3 months ago
Selected Answer: CD
I think C,D is correct.
upvoted 1 times
...
[Removed]
1 year, 5 months ago
C, D, E
upvoted 1 times
...
ryuah
2 years, 5 months ago
C,E is correct
upvoted 1 times
...
yukclam9
3 years, 2 months ago
C,E. D is not correct because 'define' as a individual command will not trigger the prompt. Only when defined variable is used with & or && the verify on thing will take effect.
upvoted 4 times
...
SimoneF
3 years, 6 months ago
This is impossible, I just tested the behaviour to be sure and, unsurprisingly, I confirmed that C-D-E seems to be true, thus invalidating A:
upvoted 2 times
SimoneF
3 years, 6 months ago
E - It works on && prefixed variables: SQL> set verify off SQL> select employee_id from hr.employees where employee_id =&&emp; Immettere un valore per emp: 200 EMPLOYEE_ID ----------- 200 SQL> undefine emp SQL> set verify on SQL> select employee_id from hr.employees where employee_id =&&emp; Immettere un valore per emp: 200 vecchio 1: select employee_id from hr.employees where employee_id =&&emp nuovo 1: select employee_id from hr.employees where employee_id =200 EMPLOYEE_ID ----------- 200 So, either there are 3 answers instead of (and different from) the 2 suggested, or I'm seriously missing something here.
upvoted 2 times
Guhborges
2 years, 7 months ago
Simone, you are missing something here! SET VERIFY does not display values for variables created by the DEFINE command, it shows the corresponding values of the variables we are currently using. If you don't use the create by define variable, you won't be able to see the value of DEFINE.
upvoted 3 times
...
...
SimoneF
3 years, 6 months ago
D - It works for variables created via DEFINE: SQL> set verify off SQL> define emp = 200; SQL> select employee_id from hr.employees where employee_id = &emp; EMPLOYEE_ID ----------- 200 SQL> set verify on SQL> select employee_id from hr.employees where employee_id = &emp; vecchio 1: select employee_id from hr.employees where employee_id = &emp nuovo 1: select employee_id from hr.employees where employee_id = 200 EMPLOYEE_ID ----------- 200
upvoted 1 times
...
SimoneF
3 years, 6 months ago
C: It works on SqlDevelope 3.22, so it's not even a new functionality.
upvoted 1 times
...
...
esarregui
3 years, 7 months ago
Answer: C + ¿D or E? SQL> set verify on SQL> select &&x from dual; Enter value for x: dummy old 1: select &&x from dual new 1: select dummy from dual D - X SQL> set verify on SQL> define y='dummy'; SQL> select &y from dual; old 1: select &y from dual new 1: select dummy from dual D - X
upvoted 1 times
...
Chansi
3 years, 10 months ago
Did u check if it works on sql developer? It doesn’t work on toad. I tested
upvoted 1 times
adoptc94
3 years, 9 months ago
If works in SQL Developer, there are also some YouTube Tutorials that show the command using SQL Developer.
upvoted 1 times
...
...
you1234
3 years, 10 months ago
C & E is correct
upvoted 2 times
ama
3 years, 10 months ago
i agree, E is working: SQL> set verify off SQL> select &&var from dual; Geben Sie einen Wert fur var ein: sysdate SYSDATE -------- 04.08.20 SQL> set verify on SQL> select &&var from dual; alt 1: select &&var from dual neu 1: select sysdate from dual SYSDATE -------- 04.08.20
upvoted 1 times
...
...
NowOrNever
3 years, 10 months ago
why not E? SET VERIFY ON UNDEFINE dummy_number; SELECT employee_id, job_id FROM employees where EMPLOYEE_ID = &&dummy_number; -- working, he just asks for an input (like 206) i agree with C, but unsure between D and E
upvoted 2 times
ama
3 years, 10 months ago
E is wrong… look at below example, the variable was disaplyed even without using set verify on! SQL> SELECT owner , TABLE_NAME FROM DBA_TABLES where table_name = '&&dummy_number'; Geben Sie einen Wert fur dummy_number ein: DUAL alt 1: SELECT owner , TABLE_NAME FROM DBA_TABLES where table_name = '&&dummy_number' neu 1: SELECT owner , TABLE_NAME FROM DBA_TABLES where table_name = 'DUAL' OWNER -------------------------------------------------------------------------------- TABLE_NAME -------------------------------------------------------------------------------- SYS DUAL
upvoted 1 times
adoptc94
3 years, 9 months ago
that's because SET VERIFY ON is the default. If you don't specify SET VERIFY OFF it will use SET VERIFY ON
upvoted 3 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago