<div dir="ltr">Hello,<br><br>I'm using pl/python with postgis <a href="http://1.3.3.">1.3.3.</a><br><br>I'm using plpy.prepare to query my db and I'd like to be able to use values in my db tables to determine which table to query.<br>
<br>I'd like to do something like this:<br><br>plpy.prepare("select <a href="http://a.info">a.info</a> from $1 a where a.value=$2", ["text", "integer"])<br><br>I've been using variables similar to the situation for $2 without any problems but I'm getting an error when I try a variable in place of the table name.  My guess is that such variable use is not allowed.  Is that correct?  Or can someone make my day and explain to me how I can query with a yet to be determined table name?  <br>
<br>Thanks,<br>-Scott<br><br>PS  If this is the wrong place to send such a question please let me know of a more appropriate group that may be able to help.  <br></div>