Copy link to clipboard
Copied
Bonjour,
Je programme cette requête souvent avec d'autres fichiers mais là je ne vois pas mon erreur :
Bonjour,
SELECT *
FROM Produits
WHERE Pro_ID=#session.Produit#
</CFQUERY>
SQLSTATE 07002
EXCEPTIONS <small><i>not set</i></small>
DATASOURCE soliv_solivresdb
VENDORERRORCODE -3010
SQL SELECT * FROM Produits WHERE Pro_ID=1139
Merci pour votre aide
Copy link to clipboard
Copied
help plz
Copy link to clipboard
Copied
Such strange errors usually arise when you embed <cfquery> within <cfoutput>. Review your code and replace
<cfoutput>
<cfquery>
...
<cfquery>
<cfoutput>
with
<cfquery>
...
<cfquery>
Copy link to clipboard
Copied
Two more possible causes of the error:
Pro_ID='#session.Produit#'
Copy link to clipboard
Copied
Ce n'est pas le cas ;-(
Copy link to clipboard
Copied
Ce nest pas le cas ;-(
Copy link to clipboard
Copied
OK, let's move on.
Verify that the table name and column name are correct.
What is your database brand? Some, like PostgreSQL are case-sensitive. Which means you should use the exact (case-sensitive) table name and column name.
Copy link to clipboard
Copied
Ce nest pas le cas ;-(
By @Jean-Marie22691987kfb3
Please realize that that is an insufficient answer to the questions,
Copy link to clipboard
Copied
I'd propose other questions and suggestions: