B
B
beduin012021-03-31 14:22:41
PostgreSQL
beduin01, 2021-03-31 14:22:41

How to pass multiple insert commands to a query?

The language is fundamental. I think the problem is common.

There is a request:

List<List<dynamic>> result = await connection.query("""
    DELETE
    FROM t1
    WHERE "aaa"='123';

    DELETE
    FROM t2
    WHERE "bbb"='123';
""");


It swears: “A trained guard fails to answer a few commands.

And how to be? I don't see queryAll in the library.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question