php.de

Zurück   php.de > Webentwicklung > Datenbanken

Datenbanken SQL und Co

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 30.09.2005, 16:26  
Gast
 
Beiträge: n/a
Standard [Erledigt] CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP

Hallo zusammen,

Ich bekomme eine Fehlermeldung beim erstellen folgender Tabelle:

Code:
CREATE TABLE ehcs_zoom_comments(
cmtid int( 11 ) NOT NULL AUTO_INCREMENT ,
imgid int( 4 ) NOT NULL default '0',
cmtname varchar( 40 ) NOT NULL default '',
cmtcontent varchar( 180 ) NOT NULL default '',
cmtdate timestamp NOT NULL default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
PRIMARY KEY ( cmtid ) ,
KEY image_id( imgid ) ,
KEY id( cmtid )
);
The Error-Message is:

Zitat:
#1064 - 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 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY
Warum erscheint dieser Fehlermeldung? Wäre dankbar für einen Tipp!

Greetings, Yves
  Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 30.09.2005, 18:57  
Gast
 
Beiträge: n/a
Standard

Welche mysql Server Version wird benutzt?

http://dev.mysql.com/doc/mysql/en/create-table.html
Zitat:
InnoDB supports both ON DELETE and ON UPDATE actions on foreign keys as of MySQL 3.23.50 and 4.0.8, respectively. For the precise syntax, see Section 15.7.4, “FOREIGN KEY Constraints”.

For other storage engines, MySQL Server parses the FOREIGN KEY and REFERENCES syntax in CREATE TABLE statements, but without further action being taken.
  Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Update / syntaxfehler prinzli Datenbanken 7 24.11.2007 21:24
INSERT.. ON DUPLICATE KEY UPDATE cycap Datenbanken 3 26.10.2007 13:08
UPDATE mit Subquery cycap Datenbanken 6 27.09.2007 14:25
zwei SQL-Befehle (SELECT UND UPDATE) auf einmal vollziehen. Datenbanken 3 09.03.2006 16:34
Strato & MysqlDB update Schmuend Datenbanken 5 21.02.2006 08:59
UPDATE soll TIMESTAMP-Feld nicht verändern Datenbanken 7 26.01.2006 13:59
UPDATE count nach Link Aufruf ? PHP Tipps 2006 9 22.01.2006 14:53
per Update eine zahl ehöhen lassen Datenbanken 3 04.07.2005 16:37
Update in mysql funzt nicht maeck PHP Tipps 2005-2 4 27.06.2005 22:52
Update per Cronjob (where Feld = Wort) Apfeltyp PHP Tipps 2004-2 3 14.12.2004 18:25
UPDATE Problem 2wuck Datenbanken 3 19.11.2004 22:05
[Erledigt] UPDATE mit ' im Text Datenbanken 2 09.11.2004 20:07
[Erledigt] UPDATE = NO Update aber kein fehler..dringend hilfe suchend Datenbanken 2 25.09.2004 16:28
php update PHP Tipps 2004 2 24.09.2004 01:07
[Erledigt] UPDATE Syntax problem Datenbanken 6 17.08.2004 16:18

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
on update current_timestamp, mysql current_timestamp, php current_timestamp, mysql on update current_timestamp, current_timestamp mysql, php mysql current_timestamp, current_timestamp, sql current_timestamp, current_timestamp php, mysql update current_timestamp, php current timestamp, mysql current_timestamp on update, current_timestamp sql, current_timestamp on update current_timestamp, mysql current_timestamp php, mysql current_timestamp update, mysql on update current timestamp, current_timestamp on update, mysql php current_timestamp, on update current_timestamp funktioniert nicht

Alle Zeitangaben in WEZ +2. Es ist jetzt 15:05 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.