会感激一些帮助。 MySQL忽略了我只询问invoicenumber以某些字符开头的行。没有错误消息。我按照要求收到所有发票。
我添加了// initialize your RecyclerView and your LayoutManager
mLinearLayoutManager = new LinearLayoutManager(getContext());
mRecyclerView.setLayoutManager(mLinearLayoutManager);
// set a custom ScrollListner to your RecyclerView
mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
@Override
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
// Get the first visible item
int firstVisibleItem = mLayoutManager.findFirstVisibleItemPosition();
//Now you can use this index to manipulate your TextView
}
});
这部分不起作用。请问有人给我一个提示吗?
OR 'orders_billing'.'rechnungsnummer' LIKE 'xy%' OR 'orders_billing'.'rechnungsnummer' LIKE 'ab%'
答案 0 :(得分:0)
试试这个,
WHERE "billing_id" > '23' AND "billing_id" < '27'
OR ("orders_total_local"."class" = 'ot_shipping')
OR ("orders_billing"."rechnungsnummer" LIKE 'ABC%' )
OR ("orders_billing"."rechnungsnummer" LIKE 'XYZ%')
另一种方式,
WHERE "billing_id" > '23' && "billing_id" < '27'
|| ("orders_total_local"."class" = 'ot_shipping')
|| ("orders_billing"."rechnungsnummer" LIKE 'ABC%' )
|| ("orders_billing"."rechnungsnummer" LIKE 'XYZ%')