hey,
thanks, it works. Did not know/think apply can be used in this situation.
Regards,
Amir
On Thursday, December 6, 2012 12:19:28 PM UTC+1, Baishampayan Ghose wrote:
>
> How about using apply?
>
> For example -
>
> (sql/with-connection (db-connection)
> (apply sql/insert-values "table
On Thursday, December 6, 2012 12:18:05 PM UTC+1, Amir Wasim wrote:
>
> I am trying to use insert-values with value-groups which works like the
> following
>
> (sql/with-connection (db-connection)
> (sql/insert-values "table-name" ["id" "val"] [2 "B"][3 "C"]))
>
> here [2 "B"][3 "C"] is wit
How about using apply?
For example -
(sql/with-connection (db-connection)
(apply sql/insert-values "table-name" ["id" "val"] [[2 "B"][3 "C"]]))
Does that work?
-BG
On Thu, Dec 6, 2012 at 4:48 PM, Amir Wasim wrote:
>
> I am trying to use insert-values with value-groups which works like
I am trying to use insert-values with value-groups which works like the
following
(sql/with-connection (db-connection)
(sql/insert-values "table-name" ["id" "val"] [2 "B"][3 "C"]))
here [2 "B"][3 "C"] is with two value groups
the problem is i have list of list [[2 "B"][3 "C"]] and i want