1533
צפיות
צפיות
1
תשובות
תשובות
טבלה ריקה
איך אני אוכל לדעת אם אין לי ערכים בטבלה שמתאימים למשפט
SELECT * FROM TABLE WHERE ID=1
בינתיים אני רק מקבל הודעת שגיאה
ADODB.Recordset error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
1 תשובות
הנה קוד דוגמא
<%
Set rs = Server.CreateObject("ADODB.RecordSet")
sql = "SELECT * FROM TABLE WHERE ID="&ID
rs.Open sql, conn
If rs.EOF Then
Response.Write "No Records"
Else
Response.Write "The table contain records"
End If
rs.Close
Set rs = Nothing
%>
ה-EOF מציין שזה סוף הקובץ (End Of File) ואם כן, זה סימן שאין נתונים לשליפה מהשאילתה הנוכחית שלך.