Re: Possible to get field names and types in a table without executing a query?

2006-06-27 Thread Matthew Dougerty
Here's one for oracle sub GetOracleFieldLengths { my ($TABLE)[EMAIL PROTECTED]; my (%FIELDLENGTHS, %FIELDTYPES); if ($TABLE=~/\.(\S+)$/) { $TABLE=$1; } my $fieldlengths=$dbh-prepare(SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH from ALL_TAB_COLUMNS where

Re: perl DBI 1.25 not connectting to Oracle 10g

2006-01-05 Thread Matthew Dougerty
You need Oracle DBD. If it's there there will be per5~/DBD/Oracle.pm and an Oracle directory. On 5 Jan 2006 19:01:35 -, Sunil A V wrote   Hi, I am trying this combination: perl: v5.61 DBI: 1.25 Oracle: 10g OS: Solaris Unix The directory /home/me/perlmods contains DBI.pm, DBI dir,

Oracle DBD TO_DATE not working.

2005-10-16 Thread Matthew Dougerty
I am having trouble using date operations in Oracle via DBI. The following code fails to return any results. $selectStatement.=SELECT s.NETWORK_NAME as NETWORK_NAME,; $selectStatement.= TO_CHAR(s.OUTAGE_START,'MM/DD/ HH24:MI:SS') as OUTAGE_START,; $selectStatement.=