Marklitz has asked for the wisdom of the Perl Monks concerning the following question:
Table1 ----------- C1 ---------- dos mou com dis cus ion
I want to compare the data and find out whether table1 contents are contained in table 2 or not. i.e. i want my output as...Table2 ------------ C1 ----------- mouse discussion computer
I tried by:mou is present in mouse com is present in computer dis is present in discussion cus is present in discussion ion is present in discussion
But while executing this, am getting an errormy $check =dbh->prepare("SELECT Table.C1, Table.C2 FROM Table1, Table2 + WHERE Table.C1 LIKE Table.C2"); $check->execute(); print "rows present:" + $check->rows; while(@rows = $query->fetchrow_array()) { echo $row['Table1.C1'].is.present.in.$row['Table2.C2']; }
Please help.. Thanks in advanceCant't call method "execute" on an undefined value at ./filename line +123
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: compare 2 tables of mysql in perl
by moritz (Cardinal) on Jun 22, 2009 at 13:57 UTC | |
|
Re: compare 2 tables of mysql in perl
by Anonymous Monk on Jun 22, 2009 at 13:56 UTC | |
|
Re: compare 2 tables of mysql in perl
by CountZero (Bishop) on Jun 22, 2009 at 14:56 UTC | |
|
Re: compare 2 tables of mysql in perl
by Anonymous Monk on Jun 22, 2009 at 13:58 UTC |