Other than that, I'm not really sure what you are asking.
Hey there..
What im asking is im trying to save only 1 set of data everytime..
When a user saves a new data, it will overwrite the previous saved data..
How can i achieve this..?
You suggested the UPDATE statement..can give me a sample on how to do this?
So you will only have one row in a table at a time? Is that what you mean? Or do you want only one row per user? If you need to know how to use a DB in your .NET program, we have two articles about it in the Howtwos section.
So you will only have one row in a table at a time? Is that what you mean? Or do you want only one row per user? If you need to know how to use a DB in your .NET program, we have two articles about it in the Howtwos section.
Yes only one row/record in the table. Because i want the record to overwrite the previous one each time.
Yes only one row/record in the table. Because i want the record to overwrite the previous one each time.
Well, that's easy enough. When you are ready to write the new values, you could execute a DELETE statement to delete the row, and an INSERT statement to add a new one, or you could use an UPDATE statement to update all the columns in place.
Well, that's easy enough. When you are ready to write the new values, you could execute a DELETE statement to delete the row, and an INSERT statement to add a new one, or you could use an UPDATE statement to update all the columns in place.
Comment