Click here to Skip to main content
15,913,722 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi, I have been created a table with in a single column. When updating a single row using ExecuteNonQuery() it react to change all rows the values(database). This table contain only one row........
My front end is vb.net and back end is ms access.
Thank U..........
Posted
Updated 3-Dec-11 15:47pm
v3
Comments
[no name] 3-Dec-11 21:48pm    
EDIT: added code block
[no name] 3-Dec-11 21:49pm    
Please provide us what you've already done. We'll modify your codes for you.

1 solution

To update a single row in your database table, you need to have a set of identifiers for every row.
For example, a primary key. That would enable you to select a single row and then update it.

An example query would be,
Update table set column2 = [value] where [column1] = [unique value]
 
Share this answer
 
Comments
ckulasekaran 3-Dec-11 3:11am    
This table contain only one column

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900