hello all i am inserting my data by this query
insert into doc_share (docid,did,coid,eid) values
('$val','$some','$thing','$here'),
('$val25','$some','$thing','$here'),
('$val33','$some','$thing','$here')...
// only $val is changing other values are same
now in my database i want unique combination of docid
and did
i have done it from by table but i want to do it by query because even when there is one duplicate row no insertion of rows are done even for non duplicate rows.
i want to do the checking for any duplicate rows before sending the data to database if possible withing the same query
please give me some hints ....