Greetings,<br>
<br>
I would like to insert the results of a query into another table and am
doing this from a python script. I am setting the results of a queryequal to a variable with the following: <br>
<br>
variable = container.zsql_method(paramater=value)[0][0]<br>
<br>
This gives the results I want (in this case &quot;0&quot;), but when I try to
insert this variable using another zsql method, I get the following
error:<br>
<br>
&quot;MySQL server version for the right syntax to use near '0\n)'&quot;<br>
<br>
The value I want is there, but it has a newline character also. I try
removing using .replace but then I get the following error:<br>
<br>
'long' object has no attribute 'replace'<br>
<br>
I would greatly appreciate it if someone could point me in the right direction.<br>
<br>
Than you very much,<br>
<br>
Ivan<br>