DEDECMS中直接通过数据库插入文章 【sql语句】 - 日理万妓 2022-05-15 23:13 137阅读 0赞 突然想用**爬虫**爬来的数据对接DEDECMS,所以研究了一下怎么直接在**DEDECMS**中直接插入一篇文章,其中各个字段的意思,各位自己**[百度][Link 1]**查下吧。 (但其实我并没有这样用。因为我直接用前台做的网页,用ajax请求的json数据,其他的都简单,就是没办法人工审核内容)尝试了半天,其实只要操作下面三个表格即可。希望**[好品牌][Link 2]**的分享能帮到你 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); [Link 1]: http://www.baldu.co [Link 2]: http://www.haopin.org
还没有评论,来说两句吧...