Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. MySQL
  4. insert on duplicate update, multiple keys

insert on duplicate update, multiple keys

Scheduled Pinned Locked Moved MySQL
mysqlquestionannouncement
2 Posts 2 Posters 18 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rastaVnuce
    wrote on last edited by
    #1

    I'm trying to use "insert... on duplicate key update" on a table with multiply unique keys, but MySQL fails to recognize them. It only recognizes the first column as a primary key. Is there anything additional I can do to force it to recognize the other four keys, or I'll have to create a procedure for this to work? Anyone got any idea?

    Where it seems there are only borderlines, Where others turn and sigh, You shall rise!

    F 1 Reply Last reply
    0
    • R rastaVnuce

      I'm trying to use "insert... on duplicate key update" on a table with multiply unique keys, but MySQL fails to recognize them. It only recognizes the first column as a primary key. Is there anything additional I can do to force it to recognize the other four keys, or I'll have to create a procedure for this to work? Anyone got any idea?

      Where it seems there are only borderlines, Where others turn and sigh, You shall rise!

      F Offline
      F Offline
      FilippoCSM
      wrote on last edited by
      #2

      I have the same problem. Have you found a solution? Thanks.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups