我想在MySql数据库中更新或替换(以哪种方式工作更好/更安全)表。如何将特定条目的MySql值从0更改为1
的表称为*editornofollow*
,它包含3 columns:
1. Some unique numerical IDs (I have around 10000 Ids from which only
like 3000 need to be updated)
2. edchoice (no need to replace anythinghere)
3. nofollow (here are values of 0 or 1 - if it's 0 means that the ID attributed to a specific link is dofollowed by search engines, if it's 1 - it's nofollowed).
而且我要的是取代像零点到1的3000。
的命令应该是这样的:
更换if id {id1, id2, id3, id4, id4, id6 etc}
列dofollowed与价值1.
人谁知道Mysql的更好能帮我吗?
我在某些文件中有命令,是由多年前完成的,但是......显然我无法找到该文件。我只知道这是一个很长的命令,因为它包含了所有这些数字ID。
份额表的结构和一些样本数据... –