Visualizzazione dei risultati da 1 a 10 su 10

Discussione: query

  1. #1

    query

    la query seguente mi da errore

    Codice PHP:
    SELECT *
    FROM customers
    WHERE customers_cid NOT
    IN 
    (

    SELECT customers_cid
    FROM 
    `address_bookabcustomers c
    WHERE ab
    .address_book_id c.customers_default_address_id
    AND c.customers_id ab.customers_id
    )
    LIMIT 0 30 
    dove sbaglio??
    Success in life is a matter not so much of talent and opportunity as of concentration and perseverance.

  2. #2
    Utente di HTML.it L'avatar di marco80
    Registrato dal
    May 2005
    Messaggi
    1,357
    Il nome di tabella con lo spazio forse? address_book` ab

  3. #3
    ecco l'errore
    #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 'SELECT customers_cid FROM address_book ab , customers c WHERE
    Success in life is a matter not so much of talent and opportunity as of concentration and perseverance.

  4. #4
    Utente di HTML.it
    Registrato dal
    Jan 2006
    Messaggi
    99
    nella seconda select devi mettere c.customers_cid

  5. #5
    Il tuo MySql non supporta le subquery
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

  6. #6
    si puo' fare con mysql??
    Success in life is a matter not so much of talent and opportunity as of concentration and perseverance.

  7. #7
    Originariamente inviato da gm
    Il tuo MySql non supporta le subquery
    VVoVe:
    ok capisco
    Success in life is a matter not so much of talent and opportunity as of concentration and perseverance.

  8. #8
    Originariamente inviato da webfrancy
    VVoVe:
    ok capisco
    E' solo un problema di versione comunque, tu che versione hai ?
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

  9. #9
    Utente di HTML.it
    Registrato dal
    Jan 2006
    Messaggi
    99
    secondo me è un errore di sintassi
    controlla la seconda select

  10. #10
    Originariamente inviato da darkmic
    secondo me è un errore di sintassi
    controlla la seconda select
    la select interna fuziona perfettamente se da sola..
    ha ragione gm, come sempre
    Success in life is a matter not so much of talent and opportunity as of concentration and perseverance.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.