Skip to content

How can I pass params to query in SQL JDBCRead? #22

@sebastianherreramonterrosa

Description

I'm working in a opl project. In my .dat file I have

px = 20
JDBCConnection in("jdbc:sqlite:my_database.db", "");
my_param from JDBCRead(in, "SELECT COL FROM TABLE WHERE COL2 <= 20");

I need:

my_param from JDBCRead(in, "SELECT COL FROM TABLE WHERE COL2 <= :px");

All variables are defined correctly in .mod file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions