Re: Checking if a table exist





Reidy, Ron wrote:
1. Look in the data dictionary
2. Select from the table and trap the appropriate error code

-----Original Message-----
From: Loo, Peter # PHX [mailto:Peter.Loo@xxxxxxxxxxxxxxxxxxxxxxxx] Sent: Thursday, April 27, 2006 4:33 PM
To: List - DBI users
Subject: Checking if a table exist

Hi All,
Does anyone know of a good way to check if a table exist disregarding
whether the table has data or not?

put 'SHOW TABLES;' into a hash and
if(exists $tables{'user'}) {

....
.



Relevant Pages

  • RE: Oracle cursor help
    ... Lead DBA ... To: Reidy, Ron ... part that surprised me was the truncate. ...
    (perl.dbi.users)
  • RE: DBD-Oracle error when inserting a date
    ... To: Reidy, Ron ... I'm binding in the execute statement. ... sender of the delivery error by replying to this message, or notify us by ...
    (perl.dbi.users)
  • Re: EOF question
    ... Try to trap the error, see if this work for you. ... If Err.Number = 2105 Then 'trap the error code here ... KeyCode = 0 ... what is the correct solution for that? ...
    (microsoft.public.access.formscoding)
  • Re: Menu problem in Excel
    ... Ron de Bruin wrote: ... Object variable or With block variable not set - error code 91 ... I'm trying to hide a user-defined menu item in Menu bar during ...
    (microsoft.public.excel.programming)
  • Re: Help stop code nightmare
    ... Pulling cards won't help in this instance: ... "Ron" wrote in message ... Any help on this to get past this error code would be>>> much appreaciated. ... >> Frank GoBell ...
    (microsoft.public.windowsxp.basics)