boske33
Programmer
- Apr 18, 2006
- 5
Hi to all!
i have one problem i have table like this:
ID DAT BOD
1, '19540801', 73,
2, '19540726', 75,
3, '19550801', 75,
4, '19550906', 75,
5, '19540725', 74,
and when i use this query
select id,dat,bod from test.datum order by bod
i got this :
ID DAT BOD
1, '19540801', 73
5, '19540725', 74
2, '19540726', 75
3, '19550801', 75
4, '19550906', 75
but how to make table like this:
ID DAT BOD
1, '19540801', 73
2, '19540725', 74
3, '19540726', 75
4, '19550801', 75
5, '19550906', 75
here ID column have new ID started from 1 and i need to save
column DAT and BOD intact, so need to change only ID column.How i can do this?
Tnx
i have one problem i have table like this:
ID DAT BOD
1, '19540801', 73,
2, '19540726', 75,
3, '19550801', 75,
4, '19550906', 75,
5, '19540725', 74,
and when i use this query
select id,dat,bod from test.datum order by bod
i got this :
ID DAT BOD
1, '19540801', 73
5, '19540725', 74
2, '19540726', 75
3, '19550801', 75
4, '19550906', 75
but how to make table like this:
ID DAT BOD
1, '19540801', 73
2, '19540725', 74
3, '19540726', 75
4, '19550801', 75
5, '19550906', 75
here ID column have new ID started from 1 and i need to save
column DAT and BOD intact, so need to change only ID column.How i can do this?
Tnx