> Perhaps:
>
> INSERT OR IGNORE INTO table_a
> (
> col_a,
> col_b,
> col_c,
> col_d
> ) VALUES (
>(SELECT id FROM table_b WHERE name=?)
> ,?
> ,?
> ,(SELECT id FROM table_c WHERE name=?)
> );
Hah,
I need some time away from this one, not sure what I was
On Sun, 24 Nov 2013 16:10:58 +, "Joseph L. Casale"
wrote:
>Hey guys,
>Trying to create a statement for use with parameters in a Python execute method
>when performing inserts with multiple nested selects. I can adjust it for use
>with Python, but I am having issues
On 24-11-2013 17:10, Joseph L. Casale wrote:
Hey guys,
Trying to create a statement for use with parameters in a Python execute method
when performing inserts with multiple nested selects. I can adjust it for use
with Python, but I am having issues when there is more than one nested select.
Hey guys,
Trying to create a statement for use with parameters in a Python execute method
when performing inserts with multiple nested selects. I can adjust it for use
with Python, but I am having issues when there is more than one nested select.
Something such as:
INSERT OR IGNORE INTO table_a
4 matches
Mail list logo