We Shall See

  • Home
  • Archives
  • RSS
  • About Me

postgres 9.5 will have upsert

Published on: May 14, 2015
INSERT INTO products (
    upc, 
    title, 
    description, 
    link) 
VALUES (
    123456789, 
    ‘Figment #1 of 5’, 
    ‘THE NEXT DISNEY ADVENTURE IS HERE - STARRING ONE OF DISNEY'S MOST POPULAR CHARACTERS! ’, 
    ‘http://www.amazon.com/dp/B00KGJVRNE?tag=mypred-20’
    )
ON CONFLICT DO UPDATE SET description=excluded.description;

http://www.craigkerstiens.com/2015/05/08/upsert-lands-in-postgres-9.5

Tweet
nginx configuration Super simple connect
Copyright © 2015 johndstein. Powered by Logdown | Theme fabric by Pankaj Kumar