Re: [Phplib-users] Test whether db table exists using DB_SQL
Brought to you by:
nhruby,
richardarcher
From: Jesse S. <ph...@sw...> - 2001-08-17 22:54:14
|
Did anyone look at the current db_sql code? There is a function called table_names that already does exactly what you are talking about... > From: Peter Bowyer <re...@f2...> > Date: Fri, 17 Aug 2001 13:59:05 +0100 > To: phplib List <php...@li...> > Subject: Re: [Phplib-users] Test whether db table exists using DB_SQL > > At 10:21 PM 8/16/01 +0200, you wrote: >> Why not create a small 'meta' table that contains a flag that you set on >> the creation of the target table? >> If the flag doesn't exist you have to create your table, otherwise the >> table already exists. >> >> Maybe this approach is too simplistic, but at least it will work in every >> DB environment. > > Great idea! Thanks a lot!! > > Cheers! > Peter. > > > --oOo-- > Narrow Gauge on the web - photos, directory and forums! > http://www.narrow-gauge.co.uk > --oOo-- > Peter's web page - Scottish narrow gauge in 009 > http://members.aol.com/reywob/ > --oOo-- > > > _______________________________________________ > Phplib-users mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phplib-users |