如何在SQL中用其他数字系列更新数字系列 [英] How to update number series with other number series in SQL

查看:74
本文介绍了如何在SQL中用其他数字系列更新数字系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我有一个表项目为,



Actually i have a table with Items as,

No.   Name.
2      abc
2      def
3      jkl
4      MNO
4      PQR





这里需要更改数字系列,但是按照以下方式,记录数以千计。





Here it number series needs to be changed but in the following way and records are in thousands.

No.   Name.
11      abc
11      def
12      jkl
13      MNO
13      PQR

推荐答案

嗯......

Um...
UPDATE MyTable SET [No] = [No] + 9


这篇关于如何在SQL中用其他数字系列更新数字系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆