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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Dec 21, 2014, 6:18 PM EST
may help you
http://stackoverflow.com/questions/19586658/c-sharp-update-if-record-exists-else-insert-new-record
Chinna NethaRank #5,573 · 294 reputationPosted Dec 21, 2014, 7:27 PM EST
Khargesh RajputRank #616 · 3.9K reputationPosted Dec 19, 2014, 6:33 PM EST
why you need to delete the column ????
Vikram AgrawalRank #4,713 · 329 reputationPosted Dec 19, 2014, 6:36 PM EST
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.
Chinna NethaRank #5,573 · 294 reputationPosted Dec 19, 2014, 6:58 PM EST
Khargesh RajputRank #616 · 3.9K reputationPosted Dec 19, 2014, 7:19 PM EST
use update table set image='yourimagefile' where id='row_id which you want to update'
Chinna NethaRank #5,573 · 294 reputationPosted Dec 19, 2014, 7:40 PM EST
Khargesh RajputRank #616 · 3.9K reputationPosted Dec 19, 2014, 8:03 PM EST
Chinna NethaRank #5,573 · 294 reputationPosted Dec 19, 2014, 8:40 PM EST
how to write code
insert and update
Khargesh RajputRank #616 · 3.9K reputationPosted Dec 19, 2014, 10:40 PM EST
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 NethaRank #5,573 · 294 reputationPosted Dec 19, 2014, 11:30 PM EST
user second time upload update command executed.
two commands only one button tell me
plz help me
Chinna NethaRank #5,573 · 294 reputationPosted Dec 20, 2014, 4:59 AM EST
tell me ado.net code sir
if exists how to write code in ado.net
Khargesh RajputRank #616 · 3.9K reputationPosted Dec 20, 2014, 12:13 AM EST
first select * from table where id=@id
if exist then
use upate
else insert