On the documentation page for https://dev.mysql.com/doc/c-api/8.0/en/mysql-stmt-fetch.html.
In the code sample, it mentions that separate outbound parameters have to be declared in order to have access to the columns listed in the SQL query.
Is it possible to run a "SELECT * WHERE column = ?" query via prepared statements only for the WHERE part of the clause and process the result without knowing the SELECT columns ahead of time therefore not declaring them as outbound parameters?
If so, is there an example anywhere?
Thanks
I was able to find an example which shows that the outbound bind params need to be generated. Shown here in the php -> pdo_mysql extension source code:
php-8.1.12/ext/pdo_mysql/mysql_statement.c