Einzelnen Beitrag anzeigen
Alt 19.03.2009, 11:22   #9
incubus
Veteran
 
Benutzerbild von incubus
 
Registriert seit: 31.07.2006
Ort: Österreich, nähe Graz
Alter: 51
Beiträge: 253

Mein Computer

Standard

Danke !

ich hab einen syntaxfehler drinn und find ihn nicht...

Fehler

SQL-Befehl:
UPDATE "phpbb_topics" SET "phpbb_topics". "topic_first_post_id" = SELECT MIN( "phpkit_forumpost". "forumpost_id" )
FROM "phpkit_forumpost"
WHERE "phpkit_forumpost". "forumthread_id" = "phpbb_topic". "thread_id"

MySQL meldet:
#1064 - Fehler in der SQL-Syntax. Bitte die korrekte Syntax im Handbuch nachschlagen (diese kann für verschiedene Server-Versionen unterschiedlich sein) bei '"phpbb_topics"

SET "phpbb_topics"."topic_first_post_id" = SELECT MIN'in Zeile 1

_____________________________

Habs auch so probiert:
UPDATE "phpkit_forumpost","phpbb_topics"
SET "phpbb_topics"."topic_first_post_id" = SELECT "phpkit_forumpost"."forumpost_id" MIN("phpkit_forumpost"."forumpost_id")
FROM "phpkit_forumpost"
WHERE "phpkit_forumpost"."forumthread_id"="phpbb_topic". "thread_id"

Und So:

UPDATE "phpkit_forumpost","phpbb_topics"
SET "phpbb_topics"."topic_first_post_id" = SELECT "phpkit_forumpost"."forumpost_id", MIN("phpkit_forumpost"."forumpost_id")
FROM "phpkit_forumpost"
WHERE "phpkit_forumpost"."forumthread_id"="phpbb_topic". "thread_id"




__________________________________
____________________________________
Internet is voll, GEH WEG !

...a friend in need's a friend indeed, a friend with weed is better...

be a warrior

Geändert von incubus (19.03.2009 um 11:40 Uhr).
incubus ist offline   Mit Zitat antworten