what's idiomatic SQL for "insert this row with a new id if it doesn't exist yet, else create a new one and give me its id"?
-
-
In principle: MERGE. However, there is no RETURNING clause in standard SQL. If you want to do it in one shot, you'll need tricks like in SO.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.