Re: Describe table

2005-05-22 Thread Steven Lembark
I just want the info describing the table that I can see in sqlplus. my $typz = q{ select column_name, data_type from use_tab_columns where table_name = ? }; my $sth = $dbh-prepare( $typz ); ... my $table = ... ; my %name2type = do { eval {

Describe table

2005-04-18 Thread Mike Scott
I'm using DBI and DBD::Oracle. I'd like to be able to describe a table, but 'describe table' fails no matter how I try to pass it to DBI. I feel certain that this is a FAQ and so apologise in advance. I have tried to track down an answer, but describe and table are hard words to seach for. Can

RE: Describe table

2005-04-18 Thread Reidy, Ron
: Monday, April 18, 2005 11:50 AM To: dbi-users@perl.org Subject: Describe table I'm using DBI and DBD::Oracle. I'd like to be able to describe a table, but 'describe table' fails no matter how I try to pass it to DBI. I feel certain that this is a FAQ and so apologise in advance. I have tried

RE: Describe table

2005-04-18 Thread Vergara, Michael \(TEM\)
: Monday, April 18, 2005 11:10 AM To: Mike Scott; dbi-users@perl.org Subject: RE: Describe table Describe is a SQL*Plus command, not SQL. If you want to see the columns and data types in a table, select from either DBA_TABLES, ALL_TABLES, or USER_TABLES. - Ron Reidy Lead DBA Array

Re: Describe table

2005-04-18 Thread David N Murray
to describe a table, but 'describe table' fails no matter how I try to pass it to DBI. I feel certain that this is a FAQ and so apologise in advance. I have tried to track down an answer, but describe and table are hard words to seach for. Can anyone help me out? I just want the info describing

Re: Describe table

2005-04-18 Thread Michael A Chase
On 04/18/2005 10:49 AM, Mike Scott said: I'm using DBI and DBD::Oracle. I'd like to be able to describe a table, but 'describe table' fails no matter how I try to pass it to DBI. I feel certain that this is a FAQ and so apologise in advance. I have tried to track down an answer, but describe

Re: Describe table

2004-07-12 Thread Sapet Frederic
On Thu, 8 Jul 2004 18:42:47 +0100 Tim Bunce [EMAIL PROTECTED] wrote: On Thu, Jul 08, 2004 at 10:48:35AM +0200, Sapet Frederic wrote: On Wed, 7 Jul 2004 18:29:18 +0100 Tim Bunce [EMAIL PROTECTED] wrote: On Wed, Jul 07, 2004 at 04:12:08PM +0200, Sapet Frederic wrote: I am using

(Fwd) DB2 and Upgrade Re: Describe table

2004-07-10 Thread Tim Bunce
PROTECTED] Organization: Skywarn - MoP Newsgroups: perl.dbi.users To: Tim Bunce [EMAIL PROTECTED] Subject: DB2 and Upgrade Re: Describe table Tim Bunce answered ... Upgrade. to which the reply was and all the methods I needed work fine now. not obvious for me that I needed to upgrade DBD

Re: Describe table

2004-07-08 Thread Sapet Frederic
On Wed, 7 Jul 2004 18:29:18 +0100 Tim Bunce [EMAIL PROTECTED] wrote: On Wed, Jul 07, 2004 at 04:12:08PM +0200, Sapet Frederic wrote: I am using Oracle 8.1.5 DBI 1.42 and $DBD::Oracle::VERSION = '1.06'; column_info= (not implemented) ? I don't understand :0( Upgrade. Hi,

Re: Describe table

2004-07-08 Thread Tim Bunce
On Thu, Jul 08, 2004 at 10:48:35AM +0200, Sapet Frederic wrote: On Wed, 7 Jul 2004 18:29:18 +0100 Tim Bunce [EMAIL PROTECTED] wrote: On Wed, Jul 07, 2004 at 04:12:08PM +0200, Sapet Frederic wrote: I am using Oracle 8.1.5 DBI 1.42 and $DBD::Oracle::VERSION = '1.06';

Re: Describe table

2004-07-07 Thread Tim Bunce
On Tue, Jul 06, 2004 at 06:11:18PM +0200, Sapet Frederic wrote: On Tue, 6 Jul 2004 16:07:28 +0100 Tim Bunce [EMAIL PROTECTED] wrote: I think in some cases it's better to use $sth = $dbh-column_info(...) :) I am using Oracle 8.1.5 DBI 1.42 DBD::Oracle ? I tried to use

Re: Describe table

2004-07-07 Thread Sapet Frederic
I am using Oracle 8.1.5 DBI 1.42 and $DBD::Oracle::VERSION = '1.06'; I laucnh the script like this : DBI_TRACE=2 column_info.pl my script looks like: #!/bin/perl -w use strict; use diagnostics; use warnings; use DBI; my $dbh = DBI-connect('dbi:Oracle:gpdvt', 'OSNP', 'pwd') or die

Re: Describe table

2004-07-07 Thread Tim Bunce
On Wed, Jul 07, 2004 at 04:12:08PM +0200, Sapet Frederic wrote: I am using Oracle 8.1.5 DBI 1.42 and $DBD::Oracle::VERSION = '1.06'; column_info= (not implemented) ? I don't understand :0( Upgrade. Tim.

Re: Describe table

2004-07-06 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hi You cannot use the DESCRIBE statement as it is. Try it in the following way select * from sys.user_tab_columns where table_name = 'TABLE_NAME'; Cheers Prabu Jimmy Jauhal wrote: Hi All, I am trying to execute a DESCRIBE table statement from my perl script that connects to an oracle

RE: Describe table

2004-07-06 Thread Helck, Timothy
consideration, then user_tab_columns won't show that table. Tim Helck -Original Message- From: PerlDiscuss - Perl Newsgroups and mailing lists [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 5:16 AM To: [EMAIL PROTECTED] Subject: Re: Describe table Hi You cannot use the DESCRIBE statement

Re: Describe table

2004-07-06 Thread Tim Bunce
and mailing lists [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 5:16 AM To: [EMAIL PROTECTED] Subject: Re: Describe table Hi You cannot use the DESCRIBE statement as it is. Try it in the following way select * from sys.user_tab_columns where table_name = 'TABLE_NAME'; Cheers

Re: Describe table

2004-07-06 Thread Sapet Frederic
On Tue, 6 Jul 2004 16:07:28 +0100 Tim Bunce [EMAIL PROTECTED] wrote: I think in some cases it's better to use $sth = $dbh-column_info(...) :) Tim. hi I am using Oracle 8.1.5 DBI 1.42 I tried to use this method like this : $sth = $dbh-column_info( undef,'OSNP', '%%' , '%%');

Describe table

2004-05-13 Thread Jimmy Jauhal
Hi All, I am trying to execute a DESCRIBE table statement from my perl script that connects to an oracle DB. For some reason the execute fails saying that describe table is not a valid SQL statement. When I try SELECT statements they work fine and fetch data properly. DBI version 1.30 DBD

Re: Describe table

2004-05-13 Thread David N Murray
, I am trying to execute a DESCRIBE table statement from my perl script that connects to an oracle DB. For some reason the execute fails saying that describe table is not a valid SQL statement. When I try SELECT statements they work fine and fetch data properly. DBI version 1.30 DBD::Oracle

How to perform describe table ?

2001-08-28 Thread Koen Gogne
Hi all, to select something from the database I do $qw = select * from table; $sth = $dbh-prepare(qq ($qw)); $sth-execute(); to perform delete's, update's and insert's I use $qw = delete from table; $dbh-do(qq ($qw)); BUT WHAT DO I NEED TO USE TO GET describe table both $h-execute() and $h-do

RE: How to perform describe table ?

2001-08-28 Thread tziem
to perform describe table ? Hi all, to select something from the database I do $qw = select * from table; $sth = $dbh-prepare(qq ($qw)); $sth-execute(); to perform delete's, update's and insert's I use $qw = delete from table; $dbh-do(qq ($qw)); BUT WHAT DO I NEED TO USE TO GET describe table

Re: How to perform describe table ?

2001-08-28 Thread Thomas A . Lowery
($qw)); BUT WHAT DO I NEED TO USE TO GET describe table both $h-execute() and $h-do() fail when I try them. What's the solution ? btw, I'm trying this on an oracle db. -- Thomas A. Lowery See DBI/FAQ http://tlowery.hypermart.net