求教
我有这样一个问题,请指教:
表结构如下:
id int identity(1,1) not null primary key
value char(10) not null
如今,表中有数据如下:
id group value
1 1 kanon
2 1 lenove
3 2 macor
4 2 baedu
5 3 googte
我想在id为2的记录下面插入一条记录 ---3 2 cisco,其他数据顺移。
然后,表中记录该变为这样的:
1 1 kanon
2 1 lenove
3 2 cisco
4 2 macor
5 2 baedu
6 3 googte
如何实现?