S
Sumit
Hi all,
I have a table having 20 fields & 10 rows with one field as primary key
say rollNo.
I want to copy a row of the table to the table itself with a new
rollNo.
Is there a simple way out or i have to take the row in a dataset & then
modify the rollno column of the dataset with the new value & after that
write a insert query like:
insert into mytable values(dataset.Tables[0].Rows[0]["RollNo"],
dataset.Tables[0].Rows[0]["RollNo"],.....& so on).
The approach that i have written is a very cumbersome one..
also think of a table having 80 - 100 rows...unfortunately i have one
:-(
Kindly Help
Warm Regards
Sumit
I have a table having 20 fields & 10 rows with one field as primary key
say rollNo.
I want to copy a row of the table to the table itself with a new
rollNo.
Is there a simple way out or i have to take the row in a dataset & then
modify the rollno column of the dataset with the new value & after that
write a insert query like:
insert into mytable values(dataset.Tables[0].Rows[0]["RollNo"],
dataset.Tables[0].Rows[0]["RollNo"],.....& so on).
The approach that i have written is a very cumbersome one..
also think of a table having 80 - 100 rows...unfortunately i have one
:-(
Kindly Help
Warm Regards
Sumit