0
如何在查詢中傳遞同一列中的多個值?我正在使用vb.net和sql server數據庫。如何在查詢中傳遞同一列中的多個值?
隨着我的查詢生成異常說@booking_date已經宣佈嘗試不同的變量....
我的查詢是:
Dim da As New SqlDataAdapter("select * from Bookings where booking_date Between (@booking_date AND @booking_date) AND booking_time Between (@booking_time AND @bookinbg_time) AND game = " & x, con)
使用BETWEEN而不是僅僅是'booking_date = @booking_date AND booking_time = @ booking_time'的目的是什麼? – Aprillion