• User Newbie

    update tabella set presente = not(presente) where id_pers=1

    Salve a tutti uso MySQL 3.23.58 da diversi anni e la query in oggetto non mi aveva mai dato problemi.

    Nell'ultimo mese ho deciso di passare a MySQL 5.0.45

    Eseguendo la query

    **Codice:**update tabella set presente = not(presente) where id_pers=1

    mi da il seguente messaggio d'errore

    SQL Errore: Data truncated for column 'presente' at row 1

    il campo presente è: **Codice:**ENUM('Y','N') NOT NULL DEFAULT 'N'

    Vi ringrazio anticipatamente