为什么substr()在Postgres 9.3
中对整数的工作方式不同select substr('020020',3, 6)
outputs 0020
it includes the 3rd char ( which is correct )
然而
LinearLayoutManager horizontalLayoutManagaer
= new LinearLayoutManager(MainActivity.this, LinearLayoutManager.HORIZONTAL, false);
cast_recyclerView.setLayoutManager(horizontalLayoutManagaer);
cast_recyclerView.setAdapter(horizontalAdapter);
为什么会这样?如何在两种情况下获得相同的结果,无论类型检查