我们的wordpress数据库有一个列 guid
有价值: http://localhost/wordpress1/?p=x
,
哪里 x
是一个 id
价值观。例如,如果 id = 1
那么 guid = http://localhost/wordpress1/?p=1
以下代码:
$query = "LOAD DATA LOCAL INFILE
path-to-folder
INTO TABLE wp_posts
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(post_author,post_content,post_title)
SET guid = 'http://localhost/wordpress1/?p='id";
抛出错误。请协助更正设置命令。
暂无答案!
目前还没有任何答案,快来回答吧!