資料庫的日期欄位(opendate) 定義為 smalldatetime
日期區間: TXT ~ TXT1
dim txt,txt1 as string
SQL:select opendate from table where opendate between txt
and txt1
執行結果出現error:"準則運算式的資料類型不符合"
這是為什麼呢??是不是有那邊沒注意到??
謝謝大家.....^_^
日期區間: TXT ~ TXT1
dim txt,txt1 as string
SQL:select opendate from table where opendate between txt
and txt1
執行結果出現error:"準則運算式的資料類型不符合"
這是為什麼呢??是不是有那邊沒注意到??
謝謝大家.....^_^
文章標籤
全站熱搜

如果你在SQL Server中 opendate 欄位設成 datetime 或者是 smalldatetime 格式,則你丟給SQL Server的查詢字串也要符合SQL Server的時間日期格式才行。