我只是想问一下我是否能够根据我将从数据库中检索的内容创建一个动态编号列?
前任。
Table Reservations
|ReservationNo----ClientNo------DateAdded----DateModified|
|1 | 1 | 01-01-01 | 01-01-01 |
|2 | 2 | 01-01-01 | 01-01-01 |
|3 | 2 | 01-01-01 | 01-01-01 |
|4 | 2 | 01-01-01 | 01-01-01 |
|5 | 1 | 01-01-01 | 01-01-01 |
|6 | 3 | 01-01-01 | 01-01-01 |
|7 | 3 | 01-01-01 | 01-01-01 |
|8 | 2 | 01-01-01 | 01-01-01 |
|9 | 1 | 01-01-01 | 01-01-01 |
|10 | 1 | 01-01-01 | 01-01-01 |
当我执行下面的语句时......
SELECT * FROM Table WHERE ClientNo = '1'
结果 :
**Counter**-----ReservationNo----Client--------DateAdded----DateModified|
|1 | 1 | 1 | 01-01-01 | 01-01-01 |
|2 | 5 | 1 | 01-01-01 | 01-01-01 |
|3 | 9 | 1 | 01-01-01 | 01-01-01 |
|4 | 10 | 1 | 01-01-01 | 01-01-01 |