SELECT we.userid FROM {$CFG->prefix}wiki_entries we WHERE we.id=RECORDID
SELECT w.course FROM {$CFG->prefix}wiki w, {$CFG->prefix}wiki_entries we WHERE w.id = we.wikiid AND we.id = RECORDID

SELECT wp.userid FROM {$CFG->prefix}wiki_pages wp WHERE wp.id=RECORDID
SELECT w.course FROM {$CFG->prefix}wiki w, {$CFG->prefix}wiki_pages wp WHERE w.id = wp.wiki AND wp.id = RECORDID
SELECT wp.userid FROM {$CFG->prefix}wiki_pages wp WHERE wp.id=RECORDID
SELECT w.course FROM {$CFG->prefix}wiki w, {$CFG->prefix}wiki_pages wp WHERE w.id = wp.wiki AND wp.id = RECORDID
SELECT wp.userid FROM {$CFG->prefix}wiki_pages wp WHERE wp.id=RECORDID
SELECT w.course FROM {$CFG->prefix}wiki w, {$CFG->prefix}wiki_pages wp WHERE w.id = wp.wiki AND wp.id = RECORDID
SELECT wp.userid FROM {$CFG->prefix}wiki_pages wp WHERE wp.id=RECORDID
SELECT w.course FROM {$CFG->prefix}wiki w, {$CFG->prefix}wiki_pages wp WHERE w.id = wp.wiki AND wp.id = RECORDID

migrate2utf8_wiki_name(RECORDID)
migrate2utf8_wiki_summary(RECORDID)
migrate2utf8_wiki_pagename(RECORDID)
migrate2utf8_wiki_initialcontent(RECORDID)