FbCommand fbCmm =
new FbCommand("INSERT INTO PRODUTO
(CODIGO,EAN,DESCRICAO,VAL_PRODUTO,VAL_CUSTO,CAT_PRECO)"
+ "Values (@txt_codigo.Text, @txt_ean, @txt_descricao,
@txt_valPro, @txt_valCus, @txt_catPre)", ConexaoFirebird.Conexao);
What's wrong with that sentence?
I did a open connection in other class - ConexaoFirebird.Conexao();
You should use quote for decimal, string field types, your statement is correct but not clear, you can create clear sql text with sql command builder or you can use Command object of your connection.
You're executing a parameterized query without providing values for those parameters. See the documentation:
Here they bind the values
123
and"my string"
to the parameters namedid
andtext
respectively.Also note that parameter names are generally rescticted to alphanumeric, so
txt_codigo.Text
isn't likely going to work.