Eri*_*nik 1 sql sql-server-2000 query-help
我是初学SQL用户(未经过正式培训;仅限OJT),需要一些简单的更新声明方面的帮助.我想写一个更新声明,允许我列出ID.下面的陈述是我目前的写作方式.理想情况下,该声明允许我将其写成"在(49-57)中的plantunitid.有没有办法做到这一点?感谢您提供的任何帮助.
更新plantfunctiontable set decommissioned = 1其中plantunitid in(49,50,51,52,53,54,55,56,57)
这可以吗?
update plantfunctiontable set decommissioned=1 where plantunitid between 49 and 57
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
194 次 |
| 最近记录: |