I want to appoint array in insert sentence
<p>I use pyorient.
The following things want to make it, but can register nothing.</p>

<pre><code>lst = ['10', '20', '30']
var = 2016
client.command("insert into class1 (datet, price) values(var, lst[0])")
</code></pre>

<p>You could use</p>

<pre><code>lst = ['10', '20', '30']
var = 2016

client.command("insert into class1 set datet='%d', price='%s'" % (var,lst[0]));
</code></pre>

<p>or</p>

<pre><code>client.command("insert into class1 (datet,price) values ('%d','%s')" % (var,lst[0]))
</code></pre>

<p>Hope it helps.</p>

python orientdb