in reply to Re: Dynamic SQL
in thread Dynamic SQL
so when preparing and executing the query with the first query:if ($x>10) { $query="(select Name from Customers where CustId='$custid +')" } else { $query="(select Name from Sales where SalesId='$salesid' + and CustId='$custid')" }
with the second:$sth->execute(?)
so I can't have a single execute covering both occasions$sth->execute(?,?)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Dynamic SQL
by bitingduck (Deacon) on Apr 06, 2015 at 15:57 UTC | |
by erix (Prior) on Apr 06, 2015 at 16:02 UTC | |
by tye (Sage) on Apr 07, 2015 at 03:47 UTC | |
by bitingduck (Deacon) on Apr 06, 2015 at 17:16 UTC | |
by erix (Prior) on Apr 06, 2015 at 17:21 UTC | |
by Laurent_R (Canon) on Apr 06, 2015 at 17:47 UTC | |
Re^3: Dynamic SQL
by Anonymous Monk on Apr 06, 2015 at 18:22 UTC |