Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Throw DB error

by Anonymous Monk
on Mar 02, 2010 at 20:07 UTC ( [id://826249]=note: print w/replies, xml ) Need Help??


in reply to Re: Throw DB error
in thread Throw DB error

Rather than locking a table (very unusual in Oracle), you can try simply misspelling a column name in your SQL statement. Oracle's compiler will throw an error for that.
select fred from global_name * ERROR at line 1: ORA-00904: "FRED": invalid identifier

Replies are listed 'Best First'.
Re^3: Throw DB error
by Bheema_Tyco (Novice) on Mar 03, 2010 at 05:57 UTC

    Thanks for your reply. But i thing is, my code has to run for some extent then it has to throw DB error. So that only i can test my code for particular case. Tell me how can i throw db error at somewhere middle in the code

    By Bheema

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://826249]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found