Operand should contain 1 column(s)
ach32
Messages postés
47
Date d'inscription
Statut
Membre
Dernière intervention
-
yg_be Messages postés 23541 Date d'inscription Statut Contributeur Dernière intervention -
yg_be Messages postés 23541 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour à tous!
Comme vous pouvez le constater dans le titre de ma requète.
J'essaye de copier le contenu de la table "tampon" vers la table "historique", et j'ai
voici ma requète :
cette erreur: Operand should contain 1 column(s)
Comment là résoudre ? Merci d'avance pour votre aide
Comme vous pouvez le constater dans le titre de ma requète.
J'essaye de copier le contenu de la table "tampon" vers la table "historique", et j'ai
voici ma requète :
$sql = mysql_query("INSERT INTO historique (NUM_FACT,CODE_ARTI,DESIGNATION,CODE_FAM,COD_FRM,STOCK_DORIGINE,PU,QTE_VENDUE,PRIX_TOTAL,RESTE_EN_STOCK,DATE_VENTE,HEURE,VENDEUR) SELECT (NUM_FACT,CODE_ARTI,DESIGNATION,CODE_FAM,COD_FRM,STOCK_DORIGINE,PU,QTE_VENDUE,PRIX_TOTAL,RESTE_EN_STOCK,DATE_VENTE,HEURE,VENDEUR) FROM tampon WHERE VENDEUR = '$id' " ) or die(mysql_error());
cette erreur: Operand should contain 1 column(s)
Comment là résoudre ? Merci d'avance pour votre aide
A voir également:
- Operand should contain 1 column(s)
- End of input at line 1 column 1 path $ - Forum Android
- Please plug in battery and its remaining capacity should be more than 20 - Forum Windows 8 / 8.1
- App explorer sweetlabs should i remove it ✓ - Forum Windows 10
- Incorrect integer value: '' for column ✓ - Forum MySQL
- An operating system wasn't found try disconnecting any drives that don't contain an operating system - Forum Windows 10
1 réponse
yg_be
Messages postés
23541
Date d'inscription
Statut
Contributeur
Dernière intervention
Ambassadeur
1 584
bonsoir, je suggère de supprimer la parenthèse ouvrante après SELECT, et la parenthèse fermante correspondante.