Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Aug 2006
    Messaggi
    833

    order by, non funziona piu' select

    Ciao a tutti e buon anno.

    Mi dite quale' la sintassi esatta di questa select, perche' se aggiungo l'order by non funziona piu' nonostante zendstudio non dia errori di sintassi.


    $sql = "select *
    from ACSSI_DAT.srvrq00f
    where srvcas = '".$srvcas."'
    order by srvdat descend ";

  2. #2
    prova così

    Codice PHP:
    $sql "select *
    from ACSSI_DAT.srvrq00f
    where srvcas = '"
    .$srvcas."'
    order by srvdat"


  3. #3

    Re: order by, non funziona piu' select

    $sql = "select *
    from ACSSI_DAT.srvrq00f
    where srvcas = '".$srvcas."'
    order by srvdat descend ";
    Prova a sostituire descend con DESC .

  4. #4
    Utente di HTML.it
    Registrato dal
    Aug 2006
    Messaggi
    833
    Grazie, dovevo mettere DESC e non descend.

    Ciao

  5. #5

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.