![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem trying to access a database | chriss_58 | Shell Programming and Scripting | 1 | 06-12-2008 06:35 AM |
| Help with ms access database and firebird | ncatdesigner | UNIX for Advanced & Expert Users | 0 | 05-14-2008 11:05 AM |
| Perl Database access | mercuryshipzz | Shell Programming and Scripting | 2 | 01-16-2008 01:54 AM |
| C program with Oracle database access | kavi | High Level Programming | 5 | 07-12-2002 04:48 AM |
| microsoft access database on Unix | spiderling | UNIX for Dummies Questions & Answers | 1 | 03-07-2002 06:43 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Database access
Hell all,
I have the following snippet of code: $sql=qq{select * from ( select to_char(t.start_time_timestamp,'yyyy/mm/dd hh24:mi:ss') start_time,t.s_p_number_address, null cos_icsa_code, null cos_icsa_subcode from cc_unrated_msc_flow t union select to_char(r.start_time_timestamp,'yyyy/mm/dd hh24:mi:ss') start_time,r.s_p_number_address, r.cos_icsa_code, r.cos_icsa_subcode from cc_unrated_icsa_flow r ) order by start_time, s_p_number_address}; $sth = $dbh->prepare( $sql ); $sth->execute( ); while(@row = $sth->fetchrow_array()) { print("MATCH FOUND!\n"); open (DEST1, ">>/opt/rap/preprocessing/unrated_output/TEMP1")||die "$!"; print DEST1 (join ("|", @row), "\n"); } How can i indicate that $sth->fetchrow_array failled to retrieve a specific line? Can i print tis line? Thank you very much Chris |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|