• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SET VERIFY OFF

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
Can someone please explain what happens exactly when you say "set verify off" .I tried one example with both set verify on/off but couldn't get the difference between the two.
I know that it turns off the old and new line display when variables are used. Can someone explain it with example.
thanks a lot.
Trupti
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I wrote these commands with "set verify on" (which is default)
SQL> define majorValue = 'Music';
SQL>select * from students where "major" = '&majorValue';
The result that I get is:
old 1: select * from students where "major" = '&majorValue'
new 1: select * from students where "major" = 'Music'
id first_name last_name
---------- -------------------- --------------------
major current_credits
------------------------------ ---------------
10007 David Dinsmore
Music 4
10009 Rose Riznit
Music 7
But if I give the same commands with "set verify off", the response that I get is:

id first_name last_name
---------- -------------------- --------------------
major current_credits
------------------------------ ---------------
10007 David Dinsmore
Music 4
10009 Rose Riznit
Music 7
Only difference is that in the second case it doesn't show the old and new values, that means the one with the variable and then with the replaced variable name with the value.
old 1: select * from students where "major" = '&majorValue'
new 1: select * from students where "major" = 'Music'

IT won;t make any difference in the output that you get but its just for you to see which variable is getting replaced by which value.
I hope this helps.
Vibha.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
There is something that I cann't understand.why do quotation mark added on the field name 'major'?
Thank you!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic