sql - Insert uniques couple of datas in sqlite bdd -


i have data :

 sensor_name   timestamp -----------   --------- tnl09         1309539894 tnl09         1309539994 tnl27         1309540994 pwd           1309540994 

i want avoid duplicate values. tried convert timestamp value in primaryid value use insert or replace. it's work if have same timestamp different sensor_name can't insert new data.

how can (if possible) insert couple of unique datas without checking select request?

as noted above:

insert or replace table (sensor_name,timestamp) values ("tnl27",1309540994) sensor_name=tnl27 or sensor_name=1309540994 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -