select count(*)
from ibc_offer
where DEACTIVATION_DTTM > date ('31.12.9999 23:00:00','DD.MM.YYYY HH:MI:SS')
and DEACTIVATION_DTTM < ('31.12.9999 23:59:59','DD.MM.YYYY HH:MI:SS');
答案 0 :(得分:0)
尝试一下:
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout2">
<data>
<variable
name="clientprofile"
type="com.package.ClientProfile" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"/>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/name_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/name_label">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/name_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:text="@={clientprofile.clientName}"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</layout>
查询中的错误是什么?
您在select count(*)
from ibc_offer
where DEACTIVATION_DTTM > TO_DATE('31/12/9999 23:00:00','dd/mon/yyyy HH24:MI:SS')
and DEACTIVATION_DTTM < TO_DATE('31/12/9999 23:59:59','dd/mon/yyyy HH24:MI:SS');
之后的第二次比较中错过了date
关键字。您的查询应如下所示:
and