Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请帮我制作一个脚本,它将增加 MySQL 数据库中“数字”列中的数字,如下图所示:
****************** * index * number * ****************** * 1000A * 01 * * 1000B * 02 * * 1000C * 03 * * 1000D * 04 * … * 1000Z * 99 *
我认为这就是你想要的:
update `mytable` set number = number + 1 where index = $YOUR_INDEX;
当然,替换$YOUR_INDEX为感兴趣的索引。
$YOUR_INDEX