Если это ваш первый визит, рекомендуем почитать справку по форуму. Для размещения своих сообщений необходимо зарегистрироваться. Для просмотра сообщений выберите раздел. |
How to avoid duplication of the records when I make update! |
Что касается web-а... WebMaster-а Воронежа - объединяйтесь! |
|
Опции темы |
11.02.2004, 22:59 | #1 |
Форумец
Сообщений: 2
Регистрация: 11.02.2004
Не в сети |
How to avoid duplication of the records when I make update!
Does anyone have any clear idea of how can the following be achieved?
I have two databases. The databases are the same. One is on the server and the other is on the client machine. Every day I need to back up the data from the client's database to the server's. But inside the tables I want to update only the last record (for the passed day). I do not need to update the records that are there already. ONLY THE LAST RECORD NEEDS TO BE UPDATED. I suppose that the solution is somewhere in writing a query or asp code. People, if you have any ideas, please, share them with me! Thanks |
12.02.2004, 09:39 | #2 |
*
Сообщений: 984
Регистрация: 02.06.2002
Возраст: 23
Не в сети |
oleg_ef Ефа эт ты чтоль?
Ну так и читай только последнюю запись с клиента. Там же у них есть поле id или еще какой индекс? т.е. они ведь у тебя пронумерованы наверняка. А как написать запрос чтоб только последняя запись бролась я думаю ты найдеш в документации. И ты уверен что пользуешся UPDATE а не INSERT ? |
13.02.2004, 18:11 | #3 |
Форумец
Сообщений: 2
Регистрация: 11.02.2004
Не в сети |
|