I found another thread much like mine
thread219-451673
but I am not sure how to "break up my statement". This SQL query was given to me to run in my script. Any ideas how to fix this?
Giving output:
Thanks,
Nick
If at first you don't succeed, don't try skydiving.
thread219-451673
but I am not sure how to "break up my statement". This SQL query was given to me to run in my script. Any ideas how to fix this?
Code:
my $sth = $dbh->prepare( q{select T1.SVALUE, T2.SVALUE, T3.SVALUE from twtpropvalues T1, twtpropvalues T2, twtpropvalues T3 where T1.PROPID=(select ID from twtproperties where WID='00000000000000000000000000000001')T2.PROPID=(select ID from twtproperties where WID='72B1577C795AB24888F4462B18D8F42D') and T3.PROPID=(select ID from twtproperties where WID='069003638BAFDA11BCB000166F0D3E5D') and T1.INSID=T2.INSID and T2.INSID=T3.INSID and T1.INSID=(select ID from twtinstances where zonesetid='350100')
}
) or die "Can't prepare statement: $DBI::errstr";
Giving output:
Code:
DBD::Oracle::db prepare failed: ORA-00933: SQL command not properly ended (DBD ERROR: error possibly near <*> indicator at char 188 in 'select T1.SVALUE, T2.SVALUE, T3.SVALUE from twtpropvalues T1, twtpropvalues T2, twtpropvalues T3 where T1.PROPID=(select ID from twtproperties where WID='00000000000000000000000000000001')<*>T2.PROPID=(select ID from twtproperties where WID='72B1577C795AB24888F4462B18D8F42D') and T3.PROPID=(select ID from twtproperties where WID='069003638BAFDA11BCB000166F0D3E5D') and T1.INSID=T2.INSID and T2.INSID=T3.INSID and T1.INSID=(select ID from twtinstances where zonesetid='350100')
') [for Statement "select T1.SVALUE, T2.SVALUE, T3.SVALUE from twtpropvalues T1, twtpropvalues T2, twtpropvalues T3 where T1.PROPID=(select ID from twtproperties where WID='00000000000000000000000000000001')T2.PROPID=(select ID from twtproperties where WID='72B1577C795AB24888F4462B18D8F42D') and T3.PROPID=(select ID from twtproperties where WID='069003638BAFDA11BCB000166F0D3E5D') and T1.INSID=T2.INSID and T2.INSID=T3.INSID and T1.INSID=(select ID from twtinstances where zonesetid='350100')
"] at ./bpBellSouthCoyote_Beta_10_11.pl line 188.
Can't prepare statement: ORA-00933: SQL command not properly ended (DBD ERROR: error possibly near <*> indicator at char 188 in 'select T1.SVALUE, T2.SVALUE, T3.SVALUE from twtpropvalues T1, twtpropvalues T2, twtpropvalues T3 where T1.PROPID=(select ID from twtproperties where WID='00000000000000000000000000000001')<*>T2.PROPID=(select ID from twtproperties where WID='72B1577C795AB24888F4462B18D8F42D') and T3.PROPID=(select ID from twtproperties where WID='069003638BAFDA11BCB000166F0D3E5D') and T1.INSID=T2.INSID and T2.INSID=T3.INSID and T1.INSID=(select ID from twtinstances where zonesetid='350100')
') at ./bpBellSouthCoyote_Beta_10_11.pl line 188.
Thanks,
Nick
If at first you don't succeed, don't try skydiving.