Customer Portal

Using "ON DUPLICATE" or "REPLACE" with JDBC?

Comments 2

  • Avatar
    twaller
    0
    Comment actions Permalink
    Hello Des,

    It is possible to use a SQL query in DBOutputTable with ON DUPLICATE clause.

    E.g.
    INSERT INTO `aTable` (`field1`, `field2`) VALUES ($field1, $field2) on duplicate key update field3 = 'aValue'

    However, there is no direct support for this clause, you can only use it with a SQL query.

    Best regards,

    Tomas Waller
  • Avatar
    deshartman
    0
    Comment actions Permalink
    Thanks for the answer.

Please sign in to leave a comment.