• 使用SQL命令手动写入Discuz帖子内容


    -- 转存表中的数据`forum_post`
    INSERT INTO `forum_post` (`pid`, `fid`,`tid`, `first`, `author`, `authorid`, `subject`, `dateline`, `message`,`useip`, `invisible`, `anonymous`, `usesig`, `htmlon`, `bbcodeoff`,`smileyoff`, `parseurloff`, `attachment`, `rate`, `ratetimes`, `status`,`tags`, `comment`, `replycredit`) VALUES
    (5, 36, 4, 1, 'admin', 1, '这又是一条帖子',1311173433, '这当然是内容啦
    从前....结束
    ', '127.0.0.1', 0, 0, 1, 0, -1, -1, 0, 0, 0, 0, 0, '', 0, 0);
    -- 转存表中的数据`forum_thread`
    INSERT INTO `forum_thread` (`tid`,`fid`, `posttableid`, `typeid`, `sortid`, `readperm`, `price`, `author`,`authorid`, `subject`, `dateline`, `lastpost`, `lastposter`, `views`,`replies`, `displayorder`, `highlight`, `digest`, `rate`, `special`,`attachment`, `moderated`, `closed`, `stickreply`, `recommends`,`recommend_add`, `recommend_sub`, `heats`, `status`, `isgroup`, `favtimes`,`sharetimes`, `stamp`, `icon`, `pushedaid`, `cover`, `replycredit`) VALUES
    (5, 36, 0, 0, 0, 0, 0, 'admin', 1, '这又是一条帖子',1311173433, 1311173433, 'admin', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,32, 0, 0, 0, -1, -1, 0, 0, 0);
    -- 转存表中的数据`forum_post_tableid`
    INSERT INTO `forum_post_tableid`(`pid`) VALUES (5);
    -- 更新 forum_forum 表
    UPDATE `forum_forum` SET threads=threads+1, posts=posts+1, lastpost='5   这又是一条帖子   1311173433  admin' WHERE fid='36';
    -- 首先要查找一下forum_post (forum_post_tableid 和他的pid是一样的) 的 pid最大值 、 forum_thread 的 tid 最大值 ,由查出来的起始id+1 作为新的id。
  • 相关阅读:
    Linux下查看文件内容的命令
    windows下vmware配置nat网络
    xshell连接linux
    django 常见过滤器
    Django模板语言中的自定义方法filter过滤器实现web网页的瀑布流
    关于python开发CRM系统
    关于django form验证是否用户名已存在
    Django model 中的 class Meta 详解
    ERROR 3009 (HY000): Column count of mysql.user is wrong. Expected 45, found 43. Created with MySQL 5
    并发编程之线程池
  • 原文地址:https://www.cnblogs.com/furoun/p/3756327.html
Copyright © 2020-2023  润新知