in reply to Errror while execution query

For DBI you have to use errstr().

You can do manual error checking by using $DBI::errstr.

For Automatic error checking you have to enable PrintError =>1, RaiseError =>1.

For Other type of errors, you have to take a look at the System variables $! and if you use eval then use $@ to get the error message.

updated

Prasad

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.