I thought I understood the s-sql syntax on inserting into an array. Then I tried it. No, I do not understand the s-sql array syntax for an insert-into statement.<div><br></div><div>Does anyone have a simple example?</div><div>
<br></div><div>As a sampe:</div><div><span style="color:rgb(0,96,0);font-family:monospace;font-size:13px;line-height:13px;white-space:pre;background-color:rgb(239,239,239)">(query (:create-table test2 ((id :type serial)
(name :type text)
(stuff1 :type int4[])
(stuff1 :type int4[]))))</span></div><div><span style="color:rgb(0,96,0);font-family:monospace;font-size:13px;line-height:13px;white-space:pre;background-color:rgb(239,239,239)"><br></span></div>
<div><span style="color:rgb(0,96,0);font-family:monospace;font-size:13px;line-height:13px;white-space:pre;background-color:rgb(239,239,239)">What would be the equivalent s-sql to</span></div><div><span style="color:rgb(0,96,0);font-family:monospace;font-size:13px;line-height:13px;white-space:pre;background-color:rgb(239,239,239)"><br>
</span></div><div><span style="background-color:rgb(239,239,239);line-height:13px;white-space:pre"><font color="#006000" face="monospace">(query "insert into test2 values (1,'t2','{22,24,21,20}','{{2,4},{6,7}}')")</font></span></div>
<div><br></div><div>Such that </div><div><br></div><div><div>(query (:select (:[] 'stuff2 1 1) :from 'test2 :where (:= 'id 1)) :single)</div><div>#2A((2 4))</div></div><div><br></div><div>Thank you for any explanations or pointers.</div>
<div><br></div><div>Sabra Crolleton</div>