Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 19
  1. #1

    Errore eliminazione record

    codice:
    [TCX][MyODBC]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 'Min(id) FROM chat_disc' at line 1
    Come mai segna questo errore a:
    codice:
    rol = "DELETE Min(id) FROM chat_disc"
    :master: non comprendo

  2. #2
    Utente di HTML.it L'avatar di Sypher
    Registrato dal
    Jun 2003
    Messaggi
    1,994
    mmm non conosco MySQL...ma una cosa del genere:
    codice:
    "DELETE FROM tabella where id = min(id)"
    La passera non dura perchè Sypher la cattura!

    "No one like us we don't care, we are millwall, super millwall, we are millwall from the DEN"

  3. #3
    No, non mi funziona

  4. #4

  5. #5
    Utente bannato
    Registrato dal
    Jun 2004
    Messaggi
    1,854
    non so hai provato a guardare il manuale come suggerito?
    non è che magari id è vuoto? dico una cazzata?

  6. #6
    No, id non è vuoto... se cerca la colonna nel database...
    comunque veramente non ho manuali

  7. #7
    Utente bannato
    Registrato dal
    Jun 2004
    Messaggi
    1,854
    "DELETE * FROM tabella where id=MIN(id)"

    sto tirando a indovinare

  8. #8
    Utente bannato
    Registrato dal
    Jun 2004
    Messaggi
    1,854
    la sintassi lo presa da qua non so se ti puo essere d'aiuto:

    MAX(expr)
    Returns the minimum or maximum value of expr. MIN() and MAX() may take a string argument; in such cases they return the minimum or maximum string value. See section 7.4.5 How MySQL Uses Indexes. mysql> SELECT student_name, MIN(test_score), MAX(test_score)
    -> FROM student
    -> GROUP BY student_name;

    For MIN(), MAX(), and other aggregate functions, MySQL currently compares ENUM and SET columns by their string value rather than by the string's relative position in the set. This differs from how ORDER BY compares them. This will be rectified.

  9. #9
    Originariamente inviato da Swinub
    No, id non è vuoto... se cerca la colonna nel database...
    comunque veramente non ho manuali
    [TCX][MyODBC]Invalid use of group function

  10. #10
    Utente bannato
    Registrato dal
    Jun 2004
    Messaggi
    1,854

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 © 2026 vBulletin Solutions, Inc. All rights reserved.