Redian新闻
>
how to particially delete record in sql server
avatar
how to particially delete record in sql server# Database - 数据库
a*h
1
how to particially delete record in sql server
if there are 1000 pieces of record in a table, how can i
accomplish the following tasks:
1. delete record 1 to record 500.
2. delete record 500 to record 1000.
3. delete record 300 to record 500.
avatar
a*h
2
how to particially delete record in sql server
if there are 1000 pieces of record in a table, how can i
accomplish the following tasks:
1. delete record 1 to record 500.
2. delete record 500 to record 1000.
3. delete record 300 to record 500.
avatar
a*s
3
But I doubt that record is always in order.

【在 a***h 的大作中提到】
: how to particially delete record in sql server
: if there are 1000 pieces of record in a table, how can i
: accomplish the following tasks:
: 1. delete record 1 to record 500.
: 2. delete record 500 to record 1000.
: 3. delete record 300 to record 500.

avatar
a*h
4
there is a field for ID, but such ID is not an
autonumber(it is not an auto-increase number).

【在 a****s 的大作中提到】
: But I doubt that record is always in order.
avatar
n*e
5
SQL中没有记录号的概念. 你只能用key来指定所要操作的特定记录.
autoincrement的key也不是记录号, 例如你把key=100的记录删了,
key=101的记录不会自己改成100.

【在 a***h 的大作中提到】
: how to particially delete record in sql server
: if there are 1000 pieces of record in a table, how can i
: accomplish the following tasks:
: 1. delete record 1 to record 500.
: 2. delete record 500 to record 1000.
: 3. delete record 300 to record 500.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。