Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

Discuz转UCHOME 问题求解

[复制链接]
heroview 发表于 2009-9-17 22:17:18 | 显示全部楼层 |阅读模式
想把Discuz里某一版面的文章,转到home
最后的一步没有弄好。求高手相助

1
insert into uchome_blog (uid,username,subject,classid,viewnum,replynum,tracenum,dateline,pic,picflag,noreply,friend)(select authorid,author,subject,'0',views,replies,'0',dateline,'0','0','0','0' from cdb_threads where fid=3)    插入文章标题等信息到uchome主题表

2  
2 insert into uchome_blogfield (blogid,uid,message,postip,related,target_ids)(select blogid,uid,'0','0','0','0' from uchome_blog where blogid>3204)

uchome内容表。先把uchome_blogfield表的blogid跟uchome_blog主题blogid对应创建

3   uchome内容表里手工创建subject段

4  对应导入subject  文章标题
update uchome_blogfield set subject = (select subject from uchome_blog  where uchome_blog.blogid = uchome_blogfield.blogid)

5    想导入bbs主题的 内容message    根据bbs和home 两个表的 subject  文章标题相等。

update uchome_blogfield set message = (select message from cdb_posts where uchome_blogfield.subject=cdb_posts.subject(select subject from uchome_blogfield) and  fid=3)
第五步这里,执行时候,一直在执行。直到死机。。。。请高手解决。。。。。
回复

使用道具 举报

 楼主| heroview 发表于 2009-9-20 18:24:28 | 显示全部楼层
fffffghggggggg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-11 09:59 , Processed in 0.118557 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表