mySQL-Query无效:只是以xyz%开头的invoicenumbers

时间:2016-04-26 16:35:48

标签: mysql mysqli

会感激一些帮助。 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%'

1 个答案:

答案 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%')