DEDECMS中直接通过数据库插入文章 【sql语句】

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yw8886484/article/details/81623350

突然想用爬虫爬来的数据对接DEDECMS,所以研究了一下怎么直接在DEDECMS中直接插入一篇文章,其中各个字段的意思,各位自己百度查下吧。

(但其实我并没有这样用。因为我直接用前台做的网页,用ajax请求的json数据,其他的都简单,就是没办法人工审核内容)尝试了半天,其实只要操作下面三个表格即可。希望好品牌的分享能帮到你


INSERT INTO `dede_addonarticle` (`aid`, `typeid`, `body`, `redirecturl`, `templet`, `userip`) VALUES (3, 2, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, ‘‘, ‘127.0.0.1‘);
INSERT INTO `dede_addonarticle` (`aid`, `typeid`, `body`, `redirecturl`, `templet`, `userip`) VALUES (4, 3, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, ‘‘, ‘127.0.0.1‘);
INSERT INTO `dede_addonarticle` (`aid`, `typeid`, `body`, `redirecturl`, `templet`, `userip`) VALUES (5, 3, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, ‘‘, ‘127.0.0.1‘);
INSERT INTO `dede_addonarticle` (`aid`, `typeid`, `body`, `redirecturl`, `templet`, `userip`) VALUES (6, 3, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, ‘‘, ‘127.0.0.1‘);
INSERT INTO `dede_addonarticle` (`aid`, `typeid`, `body`, `redirecturl`, `templet`, `userip`) VALUES (7, 4, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, ‘‘, ‘127.0.0.1‘);
INSERT INTO `dede_addonarticle` (`aid`, `typeid`, `body`, `redirecturl`, `templet`, `userip`) VALUES (8, 4, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, ‘‘, ‘127.0.0.1‘);
INSERT INTO `dede_addonarticle` (`aid`, `typeid`, `body`, `redirecturl`, `templet`, `userip`) VALUES (9, 4, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, ‘‘, ‘127.0.0.1‘);

INSERT INTO `dede_archives` (`id`, `typeid`, `typeid2`, `sortrank`, `flag`, `ismake`, `channel`, `arcrank`, `click`, `money`, `title`, `shorttitle`, `color`, `writer`, `source`, `litpic`, `pubdate`, `senddate`, `mid`, `keywords`, `lastpost`, `scores`, `goodpost`, `badpost`, `voteid`, `notpost`, `description`, `filename`, `dutyadmin`, `tackid`, `mtype`, `weight`) VALUES(3, 2, ‘0‘, 1428895820, ‘‘, 1, 1, 0, 177, 0, ‘文章15‘, ‘‘, ‘‘, ‘admin‘, ‘未知‘, ‘‘, 1428895820, 1428895835, 1, ‘文章,我是,文章,‘, 0, 0, 0, 0, 0, 0, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, 1, 0, 0, 7);
INSERT INTO `dede_archives` (`id`, `typeid`, `typeid2`, `sortrank`, `flag`, `ismake`, `channel`, `arcrank`, `click`, `money`, `title`, `shorttitle`, `color`, `writer`, `source`, `litpic`, `pubdate`, `senddate`, `mid`, `keywords`, `lastpost`, `scores`, `goodpost`, `badpost`, `voteid`, `notpost`, `description`, `filename`, `dutyadmin`, `tackid`, `mtype`, `weight`) VALUES(4, 3, ‘0‘, 1428895820, ‘‘, 1, 1, 0, 177, 0, ‘文章15‘, ‘‘, ‘‘, ‘admin‘, ‘未知‘, ‘‘, 1428895820, 1428895835, 1, ‘文章,我是,文章,‘, 0, 0, 0, 0, 0, 0, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, 1, 0, 0, 7);
INSERT INTO `dede_archives` (`id`, `typeid`, `typeid2`, `sortrank`, `flag`, `ismake`, `channel`, `arcrank`, `click`, `money`, `title`, `shorttitle`, `color`, `writer`, `source`, `litpic`, `pubdate`, `senddate`, `mid`, `keywords`, `lastpost`, `scores`, `goodpost`, `badpost`, `voteid`, `notpost`, `description`, `filename`, `dutyadmin`, `tackid`, `mtype`, `weight`) VALUES(5, 3, ‘0‘, 1428895820, ‘‘, 1, 1, 0, 177, 0, ‘文章15‘, ‘‘, ‘‘, ‘admin‘, ‘未知‘, ‘‘, 1428895820, 1428895835, 1, ‘文章,我是,文章,‘, 0, 0, 0, 0, 0, 0, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, 1, 0, 0, 7);
INSERT INTO `dede_archives` (`id`, `typeid`, `typeid2`, `sortrank`, `flag`, `ismake`, `channel`, `arcrank`, `click`, `money`, `title`, `shorttitle`, `color`, `writer`, `source`, `litpic`, `pubdate`, `senddate`, `mid`, `keywords`, `lastpost`, `scores`, `goodpost`, `badpost`, `voteid`, `notpost`, `description`, `filename`, `dutyadmin`, `tackid`, `mtype`, `weight`) VALUES(6, 3, ‘0‘, 1428895820, ‘‘, 1, 1, 0, 177, 0, ‘文章15‘, ‘‘, ‘‘, ‘admin‘, ‘未知‘, ‘‘, 1428895820, 1428895835, 1, ‘文章,我是,文章,‘, 0, 0, 0, 0, 0, 0, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, 1, 0, 0, 7);
INSERT INTO `dede_archives` (`id`, `typeid`, `typeid2`, `sortrank`, `flag`, `ismake`, `channel`, `arcrank`, `click`, `money`, `title`, `shorttitle`, `color`, `writer`, `source`, `litpic`, `pubdate`, `senddate`, `mid`, `keywords`, `lastpost`, `scores`, `goodpost`, `badpost`, `voteid`, `notpost`, `description`, `filename`, `dutyadmin`, `tackid`, `mtype`, `weight`) VALUES(7, 4, ‘0‘, 1428895820, ‘‘, 1, 1, 0, 177, 0, ‘文章15‘, ‘‘, ‘‘, ‘admin‘, ‘未知‘, ‘‘, 1428895820, 1428895835, 1, ‘文章,我是,文章,‘, 0, 0, 0, 0, 0, 0, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, 1, 0, 0, 7);
INSERT INTO `dede_archives` (`id`, `typeid`, `typeid2`, `sortrank`, `flag`, `ismake`, `channel`, `arcrank`, `click`, `money`, `title`, `shorttitle`, `color`, `writer`, `source`, `litpic`, `pubdate`, `senddate`, `mid`, `keywords`, `lastpost`, `scores`, `goodpost`, `badpost`, `voteid`, `notpost`, `description`, `filename`, `dutyadmin`, `tackid`, `mtype`, `weight`) VALUES(8, 4, ‘0‘, 1428895820, ‘‘, 1, 1, 0, 177, 0, ‘文章15‘, ‘‘, ‘‘, ‘admin‘, ‘未知‘, ‘‘, 1428895820, 1428895835, 1, ‘文章,我是,文章,‘, 0, 0, 0, 0, 0, 0, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, 1, 0, 0, 7);
INSERT INTO `dede_archives` (`id`, `typeid`, `typeid2`, `sortrank`, `flag`, `ismake`, `channel`, `arcrank`, `click`, `money`, `title`, `shorttitle`, `color`, `writer`, `source`, `litpic`, `pubdate`, `senddate`, `mid`, `keywords`, `lastpost`, `scores`, `goodpost`, `badpost`, `voteid`, `notpost`, `description`, `filename`, `dutyadmin`, `tackid`, `mtype`, `weight`) VALUES(9, 4, ‘0‘, 1428895820, ‘‘, 1, 1, 0, 177, 0, ‘文章15‘, ‘‘, ‘‘, ‘admin‘, ‘未知‘, ‘‘, 1428895820, 1428895835, 1, ‘文章,我是,文章,‘, 0, 0, 0, 0, 0, 0, ‘<object data="http://dlstatic.cdn.zhanqi.tv/assets/swf/chunk/v2/BFPlayer.swf‘, ‘‘, 1, 0, 0, 7);

INSERT INTO `dede_arctiny` (`id`, `typeid`, `typeid2`, `arcrank`, `channel`, `senddate`, `sortrank`, `mid`) VALUES (3, 2, ‘0‘, 0, 1, 1428897598, 1428897570, 1);
INSERT INTO `dede_arctiny` (`id`, `typeid`, `typeid2`, `arcrank`, `channel`, `senddate`, `sortrank`, `mid`) VALUES (4, 3, ‘0‘, 0, 1, 1428897598, 1428897570, 1);
INSERT INTO `dede_arctiny` (`id`, `typeid`, `typeid2`, `arcrank`, `channel`, `senddate`, `sortrank`, `mid`) VALUES (5, 3, ‘0‘, 0, 1, 1428897598, 1428897570, 1);
INSERT INTO `dede_arctiny` (`id`, `typeid`, `typeid2`, `arcrank`, `channel`, `senddate`, `sortrank`, `mid`) VALUES (6, 3, ‘0‘, 0, 1, 1428897598, 1428897570, 1);
INSERT INTO `dede_arctiny` (`id`, `typeid`, `typeid2`, `arcrank`, `channel`, `senddate`, `sortrank`, `mid`) VALUES (7, 4, ‘0‘, 0, 1, 1428897598, 1428897570, 1);
INSERT INTO `dede_arctiny` (`id`, `typeid`, `typeid2`, `arcrank`, `channel`, `senddate`, `sortrank`, `mid`) VALUES (8, 4, ‘0‘, 0, 1, 1428897598, 1428897570, 1);
INSERT INTO `dede_arctiny` (`id`, `typeid`, `typeid2`, `arcrank`, `channel`, `senddate`, `sortrank`, `mid`) VALUES (9, 4, ‘0‘, 0, 1, 1428897598, 1428897570, 1);

猜你喜欢

转载自blog.csdn.net/yw8886484/article/details/81623350
今日推荐