IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage SQL Discussion :

Synchronisation programmée de DB !


Sujet :

Langage SQL

  1. #21
    Membre habitué
    Homme Profil pro
    Actionnaire
    Inscrit en
    Janvier 2015
    Messages
    15
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : Actionnaire

    Informations forums :
    Inscription : Janvier 2015
    Messages : 15
    Par défaut
    .
    ... lol ... Bien je gratte et regratte par ci par lo je m'instruit un max la tête va bientôt exploser mais je reste déterminer ^_^

    Ok je tente ça :-)



    Citation Envoyé par Schaublore Voir le message
    Bien vu,

  2. #22
    Membre habitué
    Homme Profil pro
    Actionnaire
    Inscrit en
    Janvier 2015
    Messages
    15
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : Actionnaire

    Informations forums :
    Inscription : Janvier 2015
    Messages : 15
    Par défaut
    .
    ... Snif ! Raté :p

    Erreur
    Requête SQL :


    UPDATE
    `SyncA`.LV_product_attribute AS `a_attribute`,
    INNER JOIN
    `SyncB`.LV_product_attribute AS `b_attribute`
    ON
    a_attribute.`reference` = b_attribute.`reference` AND a_attribute.`ean13` = b_attribute.`ean13`
    SET
    a_attribute.`quantity` = b_attribute.`quantity`
    WHERE
    a_attribute.`quantity` != b_attribute.`quantity`
    LIMIT 1
    MySQL a répondu: Documentation

    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INNER JOIN
    `SyncB`.LV_product_attribute AS `b_attribute`
    ON
    a' at line 3
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Error: 1064 SQLSTATE: 42000 (ER_PARSE_ERROR)
     
    Message: %s near '%s' at line %d
    Si je suis un raisonnement logique la formula a l'aire bonne :/
    ...

  3. #23
    Membre actif Avatar de Schaublore
    Homme Profil pro
    Manuel
    Inscrit en
    Octobre 2014
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 34
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Manuel
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Octobre 2014
    Messages : 61
    Par défaut
    Allez je tente un derniere fois ...

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    UPDATE
    `SyncA`.LV_product_attribute AS `a_attribute`,
    `SyncB`.LV_product_attribute AS `b_attribute`
    INNER JOIN
        `b_attribute`
    ON
        a_attribute.`reference` = b_attribute.`reference` AND a_attribute.`ean13` = b_attribute.`ean13`
    SET
        a_attribute.`quantity` = b_attribute.`quantity`
    WHERE
        a_attribute.`quantity` != b_attribute.`quantity`
    LIMIT 1
    Bon courrage

  4. #24
    Membre habitué
    Homme Profil pro
    Actionnaire
    Inscrit en
    Janvier 2015
    Messages
    15
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : Belgique

    Informations professionnelles :
    Activité : Actionnaire

    Informations forums :
    Inscription : Janvier 2015
    Messages : 15
    Par défaut
    .

    ... Nada :p


    Erreur
    Requête SQL :


    UPDATE
    `SyncA`.LV_product_attribute AS `a_attribute`,
    `SyncB`.LV_product_attribute AS `b_attribute`
    INNER JOIN
    `b_attribute`
    ON
    a_attribute.`reference` = b_attribute.`reference` AND a_attribute.`ean13` = b_attribute.`ean13`
    SET
    a_attribute.`quantity` = b_attribute.`quantity`
    WHERE
    a_attribute.`quantity` != b_attribute.`quantity`
    LIMIT 1
    MySQL a répondu: Documentation

    #1046 - No database selected
    Merci ^-^ Il est bon et Merci pour votre aide ^-^

Discussions similaires

  1. Réponses: 0
    Dernier message: 22/08/2014, 17h43
  2. Synchroniser deux BD SQL Server sans langage de programmation ?
    Par beegees dans le forum MS SQL Server
    Réponses: 11
    Dernier message: 21/12/2010, 09h07
  3. Programme Synchronisation sur XP
    Par Angeldu74 dans le forum Windows XP
    Réponses: 3
    Dernier message: 19/09/2008, 14h53
  4. Réponses: 2
    Dernier message: 29/03/2007, 17h43
  5. [Kylix] icone associée à un programme
    Par Anonymous dans le forum EDI
    Réponses: 1
    Dernier message: 22/03/2002, 09h43

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo