有两个ID字段 ID1序号已添加好,如何给具有同样ID1的ID2添加序号,语句怎样写,请高人指点,最好详细点,我水平很差的ID1 ID2
1 1
1 2
1 3
2 1
2 2
1 1
1 2
1 3
2 1
2 2
解决方案 »
- 文件另存为技术编程的问题
- 请教如何让日期自动增加?
- 如何让光标在指定的地方闪
- Adodb.Stream写二进制文件的问题,急
- inner join 如何嵌套
- 新手问个苯问题关于记录集(40)在线求
- 如何写二级目录的文件夹?请教大家。
- ¥¥¥VB定义问题¥¥¥
- 我很想找一份VB编程的工作,见者有分:由于我没有相关的经历,笔试的机会都不给我,我自信我已经可以工作了,请各位教我几招吧?
- 有谁用过TAPI3.0编过东西?
- 自动填表问题http://my.chinahr.com/NewAccount.aspx?clickbutton=1&jtr=41518621&prj=fa , 这个页面注册后的下页,现在无法看见代码?
- 关于数组内数据整理判断的问题
Dim m As Integer
rs.open "select id,id1 from table order by id1 asc", conn, 1, 1
If Not rs.EOF Then
intTmp = rs("id1")
m = 1
conn.execute ("update table set id2=" & m & " where id=" & rs("id"))
rs.movenext
If Not rs.EOF Then
For i = 2 To rs.recordcount
If rs("id1") = intTmp Then
m = m + 1
Else
m = 1
intTmp = rs("id1")
End If
conn.execute ("update table set id2=" & m & " where id=" & rs("id"))
Next
End If
End If