Comments

2 comments

  • Avatar
    JP Harvey

    Hi Zipeng, OmniSci does not support primary keys. The workaround would be to delete duplicates on a column after import using the internal rowid column, something like this, where id is your "primary key":

    DELETE FROM thetable WHERE rowid NOT IN (SELECT MAX(rowid) FROM thetable GROUP BY id)
    
    1
    Comment actions Permalink
  • Avatar
    anon23740792

    Hi there - we dont support primary keys in omnisci. could you explain a little bit more detail on what you are trying to do that requires a PK, so we can help with alternatives?

    0
    Comment actions Permalink

Please sign in to leave a comment.