I have a request as follows:
INSERT INTO MYTABLE (f1,f2,f3,f4) VALUES (1,2,3,4) ON DUPLICATE KEY UPDATE f4=5;
What have I achieved through
Create a connection, approve and execute the request as follows
statement.execute(query);
But now I need to find out if the code has executed INSERT or UPDATE?
Can anyone help me with this?
Thanks in advance...
source
share