Thanks to answer topic previous!!!!
I use this script to update one table
MERGE INTO EIS.CLI_HISTORY TXN
USING EIS.CLI_MAPING CLI
ON TXN.CLIENTID = CLI.CLIENTID
WHEN MATCHED AND
CLI.STATUSID = 3
AND CLI.CLIENTID != CLI.MAPPEDCLIEN TID AND
CLI.CLIENTID = 24180 THEN
UPDATE
SET TXN.ISMERGED = 2,
TIMEACTUAL = CURRENT TIMESTAMP,
TXN.CLIENTID = CLI.MAPPEDCLIEN TID;
But show problems of duplicate and the problem is with of row
TIMEACTUAL, because I don't put this row and the update was successful.
How I can update one row with TIMESTAMP but that is different. For
example
TimeActual 2005-12-09-09.31.05
TimeActual 2005-12-09-09.31.05
But I need that is diferent like this
TimeActual 2005-12-09-09.31.05
TimeActual 2005-12-09-09.31.06
Thanks to all !!!
Iván 3 6821
Hi, Ivan.
My apologies, but I'm afraid I don't understand what you're trying to
do and what problem(s) you're encountering. Can you take another crack
at describing the task at hand? I'm sure a solution exists, we just
need to nail down the requirements a bit.
Regards,
--Jeff
Ivan wrote:
Thanks to answer topic previous!!!!
I use this script to update one table
MERGE INTO EIS.CLI_HISTORY TXN
USING EIS.CLI_MAPING CLI
ON TXN.CLIENTID = CLI.CLIENTID
WHEN MATCHED AND
CLI.STATUSID = 3
AND CLI.CLIENTID != CLI.MAPPEDCLIEN TID AND
CLI.CLIENTID = 24180 THEN
UPDATE
SET TXN.ISMERGED = 2,
TIMEACTUAL = CURRENT TIMESTAMP,
TXN.CLIENTID = CLI.MAPPEDCLIEN TID;
But show problems of duplicate and the problem is with of row
TIMEACTUAL, because I don't put this row and the update was successful.
How I can update one row with TIMESTAMP but that is different. For
example
TimeActual 2005-12-09-09.31.05
TimeActual 2005-12-09-09.31.05
But I need that is diferent like this
TimeActual 2005-12-09-09.31.05
TimeActual 2005-12-09-09.31.06
Thanks to all !!!
Iván
Thanks!!!
I need update more of one row with Timestamp, for example mi script
extract 4 rows, and I need update these rows with diferent timestamp
Row1 TimeActual 2005-12-09-09.31.52
Row1 TimeActual 2005-12-09-09.31.53
Row1 TimeActual 2005-12-09-09.31.54
Row1 TimeActual 2005-12-09-09.31.55
I need that each row is different to be able to update my the table.
Hope is more clear.
Greetings
Iván
jefftyzzer wrote:
Hi, Ivan.
My apologies, but I'm afraid I don't understand what you're trying to
do and what problem(s) you're encountering. Can you take another crack
at describing the task at hand? I'm sure a solution exists, we just
need to nail down the requirements a bit.
Regards,
--Jeff
Ivan wrote:
Thanks to answer topic previous!!!!
I use this script to update one table
MERGE INTO EIS.CLI_HISTORY TXN
USING EIS.CLI_MAPING CLI
ON TXN.CLIENTID = CLI.CLIENTID
WHEN MATCHED AND
CLI.STATUSID = 3
AND CLI.CLIENTID != CLI.MAPPEDCLIEN TID AND
CLI.CLIENTID = 24180 THEN
UPDATE
SET TXN.ISMERGED = 2,
TIMEACTUAL = CURRENT TIMESTAMP,
TXN.CLIENTID = CLI.MAPPEDCLIEN TID;
But show problems of duplicate and the problem is with of row
TIMEACTUAL, because I don't put this row and the update was successful.
How I can update one row with TIMESTAMP but that is different. For
example
TimeActual 2005-12-09-09.31.05
TimeActual 2005-12-09-09.31.05
But I need that is diferent like this
TimeActual 2005-12-09-09.31.05
TimeActual 2005-12-09-09.31.06
Thanks to all !!!
Iván
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Harald Servat Gelabert |
last post by:
Dear news-team
I'm using MySQL 4.0.15a (with PHP 4.3.4rc1 and Apache 2.0.47 under FreeBSD).
I'm having problems when updating a column of a table (it updates an extra
column).
As an example, I provide this sample (data_registre, data_ultima_connexio are
the outputs of the SELECT).
|
by: kaming |
last post by:
Dear all,
I found that I can't update or delete a DB2 record with timestamp using
Access through ODBC. The Access complains "No current record" while I
attempt to update or delete the record with timestamp.
Do anyone have idea of how to fix this problem?
Thanks in advance!
|
by: Mihaly |
last post by:
I want to update a record into a table in SQL Server 2000 database from
C#. This table is used concurently for other users too, and I want to be sure
that from the read of record to the update no other user was updated the
record.
Please tell me how can I do this.
Thank you!
|
by: Mahesh S |
last post by:
Hi
I have to perform an update on a table. I am having problems figuring
out how to join two tables as I need to check a value in a different
table before performing the update.
I have two tables here
Table1
ID TIMESTAMP
|
by: wpellett |
last post by:
I can not get the SQL compiler to rewrite my SQL UPDATE statement to
include columns being SET in a Stored Procedure being called from a
BEFORE UPDATE trigger.
Example:
create table schema1.emp (
fname varchar(15) not null,
lname varchar(15) not null,
dob date,
| |
by: bughunter |
last post by:
simple query
select * from "Result" res where (res."QID" = 51541 or res."QID" =
51542)
works fine ("SRV-BL"."Result" ~ 900000 rows) and returns 36 rows
but update - no!
update "SRV-BL"."Result" res set "Status"=0 where (res."QID" = 51541
|
by: mokazawa1 |
last post by:
Hi,
I'm using stored procedures in DB2 UDB 8.1.2. In this stored, I execute
a select for update command, opening a cursor. Then I update the rows
using fetch and current of. The problem is that I want to return the
rows for my Java application. But if I set the cursor of the select for
WITH RETURN, I get the values, but I cant execute the update. If I dont
use WITH return, I execute the update, but I cant get the result set.
Any ideas.
|
by: dennis |
last post by:
Hello,
I'm having trouble solving the following problem with DB2 UDB 8.2.
I need to create a trigger that performs certain extra constraint
validations (temporal uniqueness). One of the tables has no primary
key.
I'm having trouble expressing an update trigger that checks for
existing rows, contemporary to the updated one, but exclusing the
|
by: Michel Esber |
last post by:
Hi all,
DB2 V8 LUW FP 15
There is a table T (ID varchar (24), ABC timestamp). ID is PK.
Our application needs to frequently update T with a new value for ABC.
update T set ABC=? where ID = ?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |