Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    TOP sql non funzionante

    salve ragazzi
    ho questo problema in questo comando sql

    SELECT top 2 * FROM t_news WHERE ID_lingua=1 ORDER BY posizione

    Non mi accetta il top.

    Perchè?

    Avete altri metodi da consigliarmi?
    Questo è l'eroore che mi da

    Failed to execute query: 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 '2 * FROM t_news WHERE ID_lingua=1 ORDER BY posizione' at line 1
    SQL: SELECT top 2 * FROM t_news WHERE ID_lingua=1 ORDER BY posizione

    Grazie per l'aiuto

  2. #2
    cose' top 2 ?

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  3. #3
    Utente di HTML.it L'avatar di nicola75ss
    Registrato dal
    Nov 2004
    Messaggi
    12,923

    Re: TOP sql non funzionante

    SELECT * FROM t_news WHERE ID_lingua=1 ORDER BY posizione limit 2

    non esiste il top in mysql.

  4. #4

    Re: Re: TOP sql non funzionante

    Originariamente inviato da nicola75ss
    SELECT * FROM t_news WHERE ID_lingua=1 ORDER BY posizione limit 2

    non esiste il top in mysql.

    hihihihiih
    GRAZIE

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.