Oracle query is not working in C#
问题 When I run this code it always returning zero while when i run this query in oracle sql client it returns 1. var strSQL = string.Format("SELECT COUNT(*) FROM GANTNER.GAT_REASONS WHERE CODE ='{0}'", StatusCode); objCmd = new OracleCommand(strSQL, objConn); objCmd.CommandType = CommandType.Text; int val = int.Parse(objCmd.ExecuteScalar().ToString()); For try I remove condition on column name CODE and it works but when I put column name CODE it does not then I tried to put "CODE" 'CODE' all not