功能介绍:利用wordpress建站,如何直接在数据库中利用mysql语法批量插入文章,下面给大家简单介绍一下具体插入语法!
具体代码如下:
INSERT INTO `wp_posts` (`ID`, `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) VALUES (NULL, '1', '2023-06-27 13:33:18', '2023-06-27 05:33:18', '内容', '标题', '描述', 'publish', 'open', 'closed', '', '32d%e62%9f%b1-3', '', '', '2023-06-27 13:33:18', '2023-06-27 05:33:18', '', '269', '网址/?p=269', '0', 'post', '', '0'), (NULL, '1', '2023-06-27 13:33:18', '2023-06-27 05:33:18', '内容', '标题', '树苗', 'publish', 'open', 'closed', '', '32d%e26%9f%b1-3', '', '', '2023-06-27 13:33:18', '2023-06-27 05:33:18', '', '270', '网址/?p=270', '0', 'post', '', '0'),
PS:最简单的方法就是在 wp_posts
表中复制一条数据出来,发布状态 post_status
需要注意!
上面是“wordpress建站如何利用mysql语法批量插入文章”的全面内容,想了解更多关于 wordpress 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_5072.html
workflows工作流
1个很漂亮的单身小女孩ComfyUI工作流
一个全脸彩绘和纹身的超级名模ComfyUI工作流
红伞伞蓝杆杆云南蘑菇群ComfyUI工作流
一只开屏的白色孔雀ComfyUI工作流
沙漠里美丽的图阿雷格女孩ComfyUI工作流
stvmccrr风格的玫瑰花ComfyUI工作流
一只外星甲壳虫子ComfyUI工作流
一颗闪闪发光的水晶漂浮在森林里
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!