title: Android SQLite INSERT or REPLACE
body: <p>I am trying the INSERT OR REPLACE syntax in SQLite with no success so far because no rows are inserted.</p>
  
  <p>My Create table query is</p>
  
  <pre><code> create table providers (provider_id text not null, provider_name text not null,  provider_channel_id text not null, channel_name text not null);CREATE UNIQUE INDEX channel_id ON providers (provider_channel_id);
  </code></pre>
  
  <p>My INSERT OR Replace query is</p>
  
  <pre><code>INSERT OR REPLACE INTO providers (provider_channel_id, channel_name, provider_id, provider_name) VALUES ('1', '2', '3', '4')
  </code></pre>
  
  <p>Thanks</p>