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

No delete or update here? #16

Closed
llemontea opened this issue Jun 5, 2019 · 3 comments
Closed

No delete or update here? #16

llemontea opened this issue Jun 5, 2019 · 3 comments
Labels
invalid This doesn't seem right

Comments

@llemontea
Copy link

This code may not support deleting or updating data……

@hongliang211
Copy link

I have same problem

@Kaktusbaum
Copy link

Update does work:

    String number = "45";

    String sql = "UPDATE users SET level='"+number+"' WHERE userid=7";

    await conn.query(sql);

@Kaktusbaum
Copy link

Delete works too:

    int userid = 7;
    String sql = "DELETE FROM users WHERE userid = " + userid.toString();

    await conn.query(sql);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants