Reportviewer C # with parameters using MySQL

1

I'm starting to develop reports in Visual Studio 2013, using C # with MySQL. I've been able to do a report without parameters, but when I enter parameters in the query, it returns an error.

The query that I put in dataset is as follows

SELECT        celular, codigo, cpf, dt_nascimento, email, nome, observacao, rg, sexo, telefone
FROM            tb_clientes
WHERE        nome like '%' + @p_nome + '%';

Without the WHERE clause, the report runs normally.

I saw an example on the internet using this parameter way of passing, however, the database was SQL Server.

    
asked by anonymous 08.06.2016 / 16:04

0 answers