删除@username周围的单引号, 并针对oracle使用
:参数名代替
@,如:
OracleCommand oraCommand = new OracleCommand("SELECt fullname FROM sup_sys.user_profile WHERe domain_user_name = :userName", db);oraCommand.Parameters.Add(new OracleParameter("userName", domainUser));资料来源:使用参数



