Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple sql statement #48

Open
arunaseva opened this issue Jul 19, 2023 · 0 comments
Open

Multiple sql statement #48

arunaseva opened this issue Jul 19, 2023 · 0 comments

Comments

@arunaseva
Copy link

Hi,

How can I add multiple sql statement with one endpoint (sqlite)?

queries/mayim_mockup_origin.sql:

DROP TABLE IF EXISTS origin;

CREATE TABLE origin (
        id INTEGER PRIMARY KEY AUTOINCREMENT,
        hostname VARCHAR,
        fqdn VARCHAR
);

INSERT INTO origin (hostname, fqdn) VALUES ('pc01', 'pc01.example.com');
INSERT INTO origin (hostname, fqdn) VALUES ('pc02', 'pc02.example.com');

What do you suggest? How is it possible?

I got this error message "You can only execute one statement at a time."

Thanks, Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant