Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente bannato L'avatar di 3com_mr
    Registrato dal
    Jan 2006
    Messaggi
    130

    Errore You have an error in your SQL syntax near 'CURRENT_TIMESTAMP on update CURRENT

    Salve,

    nel tentativo di importare questo:

    CREATE TABLE jos_vm_waiting_list (
    waiting_list_id int(11) NOT NULL auto_increment,
    product_id int(11) NOT NULL default '0',
    user_id int(11) NOT NULL default '0',
    notify_email varchar(150) NOT NULL default '',
    notified enum('0','1') default '0',
    notify_date timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
    PRIMARY KEY (waiting_list_id),
    KEY product_id (product_id),
    KEY notify_email (notify_email)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores notifications, users waiting f. products out of stock';

    Mi restituisce questo:

    You have an error in your SQL syntax near 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
    PRIMARY KEY (waiting_list_id)' at line 7


    Cosa posso fare?

  2. #2
    Probabilmente hai una versione di mysql che non supporta la sintassi da te postata, quindi se hai la possibilità aggiorna mysql
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

  3. #3
    Utente bannato L'avatar di 3com_mr
    Registrato dal
    Jan 2006
    Messaggi
    130
    Originariamente inviato da gm
    Probabilmente hai una versione di mysql che non supporta la sintassi da te postata, quindi se hai la possibilità aggiorna mysql
    Ti ringrazio per la risposta.

    Attualmente non ho questa possibilità.

    Posso modificare in qualche maniera il codice che ho inserito per "adattarlo"?

  4. #4
    Prova così:

    CREATE TABLE jos_vm_waiting_list (
    waiting_list_id int(11) NOT NULL auto_increment,
    product_id int(11) NOT NULL default '0',
    user_id int(11) NOT NULL default '0',
    notify_email varchar(150) NOT NULL default '',
    notified enum('0','1') default '0',
    notify_date timestamp(14) NOT NULL,
    PRIMARY KEY (waiting_list_id),
    KEY product_id (product_id),
    KEY notify_email (notify_email)
    ) TYPE=MyISAM COMMENT='Stores notifications, users waiting f. products out of stock';
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

  5. #5
    Utente bannato L'avatar di 3com_mr
    Registrato dal
    Jan 2006
    Messaggi
    130
    perfetto, funziona.

    Ti ringrazio molto.

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.