insert into
keyword_history (
keyword_id,
searchengine,
location,
"4",
curdate()
)
select
keyword_id,
searchengine,
location
from
keyword_history
where
history_id = 21
Run Code Online (Sandbox Code Playgroud)
基本上,我要做的是:
Dan*_*llo 12
是的你可以.您可能需要尝试以下方法:
INSERT INTO keyword_history
(
keyword_id,
searchengine,
location,
rec_date,
currentrank
)
SELECT keyword_id,
searchengine,
location,
curdate(),
'4'
FROM keyword_history
WHERE history_id = 21;
Run Code Online (Sandbox Code Playgroud)
编辑:根据下面的评论更新了字段名称.
| 归档时间: |
|
| 查看次数: |
2723 次 |
| 最近记录: |