oracle - InvalidOperationException with ExecuteOracleScalar() -


i need select value database:

    string attrident = "";                 oraclecommand sel_attr = new oraclecommand(@"      select          identifier_               tbl_a_custom_form_base_attr              templateuuid in(                         select uuid                          tbl_a_custom_form_template                         parentuuid =:projid)          , identifier_ in ('xxx',                             'yyy',                             'zzz')", conn);      sel_attr.parameters.add("projid", oracletype.nvarchar).value = id;     sel_attr.commandtype = commandtype.text;     attrident = convert.tostring(sel_attr.executeoraclescalar()); 

but got invalidoperationexception in

 attrident = convert.tostring(sel_attr.executeoraclescalar()); 

what's i'm doing wrong?


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -