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

How to use multiple where clause, i have below error #63

Open
Eswaran95 opened this issue May 15, 2019 · 1 comment
Open

How to use multiple where clause, i have below error #63

Eswaran95 opened this issue May 15, 2019 · 1 comment

Comments

@Eswaran95
Copy link

ReActiveAndroid Version:
implementation 'com.reactiveandroid:reactiveandroid:1.4.3'
Bug or Feature Request:
public static int getactualarea(String seasonid,String crop,String section) {
return (int) Select.from(PlatationMasterDb.class).where("section_id LIKE ? AND season_id LIKE ? AND season_id LIKE ?", section, seasonid,crop).sum("manual_area");
}

@bhapps
Copy link

bhapps commented May 15, 2019

Post your error report

I think your syntax is incorrect, also refer to responses/issues;

#43
#39 (comment)

Refer to below;

LIKE '?%'

Note note = Select.from(Note.class).where("id=? AND title LIKE '?%'", 1, "Hello").sum();

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

2 participants