system.data.oracleclient

OracleCommand SQL Parameters Binding

独自空忆成欢 提交于 2019-11-26 02:58:03
问题 I have a problem with the binding of the below parameter. The connection works because I had tested it without using parameters. However, the value of the query before being executed is still using \'@userName\' instead of \'jsmith\' for example. What is the problem? Is this not the right way to go around binding? public static String GetFullName(String domainUser) { DataTable dT; String fullName = \"\"; OracleConnection db = DatabaseAdapter.GetConn(); db.Open(); OracleCommand oraCommand =