ID | name | Score | paper-II | image |
| 1 | vinod | 12 | paper-II | |
| 2 | vinod | 10 | paper-I | null |
| 3 | vinod | 0 | paper-II | null |
| 4 | vinod | 15 | paper-I | |
| 5 | vinod | 12 | paper-III | null |
| 6 | vinod | 15 | paper-IIII | |
| 7 | vinod | 16 | paper-II | |
| 8 | vinod | 18 | paper-II | null |
| 9 | vinod | 13 | paper-I | null |
Loading
ID | name | Score | paper-II | image |
| 1 | vinod | 12 | paper-II | |
| 2 | vinod | 10 | paper-I | null |
| 3 | vinod | 0 | paper-II | null |
| 4 | vinod | 15 | paper-I | |
| 5 | vinod | 12 | paper-III | null |
| 6 | vinod | 15 | paper-IIII | |
| 7 | vinod | 16 | paper-II | |
| 8 | vinod | 18 | paper-II | null |
| 9 | vinod | 13 | paper-I | null |
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Dec 21, 2014, 11:18 PM
may help you
http://stackoverflow.com/questions/19586658/c-sharp-update-if-record-exists-else-insert-new-record
Chinna NethaPosted Dec 22, 2014, 12:27 AM
Chinna NethaPosted Dec 20, 2014, 9:59 AM
tell me ado.net code sir
if exists how to write code in ado.net
Khargesh RajputPosted Dec 20, 2014, 5:13 AM
first select * from table where id=@id
if exist then
use upate
else insert
Chinna NethaPosted Dec 20, 2014, 4:30 AM
user second time upload update command executed.
two commands only one button tell me
plz help me
Khargesh RajputPosted Dec 20, 2014, 3:40 AM
update table set image=@image where id=@id
http://blog.sqlauthority.com/2010/06/08/sql-server-merge-operations-insert-update-delete-in-single-execution/
http://www.techonthenet.com/sql/insert.php
http://www.techonthenet.com/sql/update.php
Chinna NethaPosted Dec 20, 2014, 1:40 AM
how to write code
insert and update
Khargesh RajputPosted Dec 20, 2014, 1:03 AM
Chinna NethaPosted Dec 20, 2014, 12:40 AM
Khargesh RajputPosted Dec 20, 2014, 12:19 AM
use update table set image='yourimagefile' where id='row_id which you want to update'
Chinna NethaPosted Dec 19, 2014, 11:58 PM
Vikram AgrawalPosted Dec 19, 2014, 11:36 PM
Khargesh is right.
No need to delete the column data
The update statement itself doing the same. First it will delete that row and then after it will add new row.
Khargesh RajputPosted Dec 19, 2014, 11:33 PM
why you need to delete the column ????