Visualizzazione dei risultati da 1 a 4 su 4

Discussione: problema con str. sql

  1. #1

    problema con str. sql

    la mia sql è cos':

    sql="select * from webmarketing where anteprimadescrizione=si order by id DESC"

    però mi questo errore perchè?

    Microsoft JET Database Engine (0x80040E10)
    Nessun valore specificato per alcuni parametri necessari.
    /dablones/webmarketing/webmarketing.asp, line 86

    il campo anteprimadescrizione è un campo si/no

  2. #2
    Utente di HTML.it L'avatar di kluster
    Registrato dal
    Jul 2003
    Messaggi
    1,288
    sql="select * from webmarketing where anteprimadescrizione order by id DESC"

    se invece vuoi il no:
    sql="select * from webmarketing where not anteprimadescrizione order by id DESC"

  3. #3

  4. #4
    Ne approfitto per suggerire di non usare si no ma i formati boleani true/false.

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.