我有一個小問題與Oracle命令,如下:奇Oracle錯誤
command.CommandText = "SELECT ID, NAME, RATING, LENGTH, STARTTIME FROM SCHEDULE WHERE ID=301 AND ROWNUM=1 AND SCHEDULE.STARTTIME <= SYSDATE ORDER BY STARTTIME DESC;";
它運行得很好Oracle SQL Developer中,返回正是我需要的,但在C#中,我得到的以下錯誤:
ORA-06550: line 1, column 186:
PLS-00103: Encountered the symbol "," when expecting one of the following:
. (* @ % & = - + </> at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like like2
like4 likec as between || indicator multiset member
submultiset
任何人都可以看到它的任何問題,或任何在C#中非法的問題嗎?
編輯:執行代碼:
command.Connection = conSQL;
using (IDataReader reader = command.ExecuteReader())
{
do
{
int count = reader.FieldCount;
while (reader.Read())
{
for (int i = 0; i < count; i++)
{
string setting = reader.GetName(i).ToString();
object value = reader.GetValue(i);
** Data assigned to variables here, hidden due to length of code**
** Follows pattern: object.property(reader.name) = reader.value **
}
}
} while (reader.NextResult());
}
你能發表完整的錯誤嗎?以下:.....? – VIRA
執行代碼必須有一些奇怪的東西。請發佈其餘的錯誤**和**執行該命令的完整代碼片段。 –