2
嗨,我使用的是oracle db。獲得以下聲明:「ORA-00936:缺少表達式」使用oracle數據庫。進入以下語句。「ORA-00936:缺少表達式」,如何解決這個問題?
string sqlquery = ("select parent from tn2 where CONNECT BY PRIOR child=" + node);
string connectionString = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.60.212.62)(PORT=1521)))(CONNECT_DATA=(SID=orcl)));User Id=apex_demo;Password=apex_demo;";
OracleConnection con = new OracleConnection(connectionString);
con.Open();
OracleDataAdapter adapter = new OracleDataAdapter(sqlquery, con);
adapter.Fill(objDT1);
con.Close();
還在其中 – ram 2011-05-30 08:31:51
查看更新:刪除'where'。 – 2011-05-30 08:33:46
ORA-01722:無效號碼 – ram 2011-05-30 08:35:27