<分区>
你好,我正在通过这个查询插入我的数据
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
现在在我的数据库中,我想要 docid
和 did
的独特组合 我已经通过表完成了,但我想通过查询来完成,因为即使有一个重复行 即使对于非重复行,也不会插入行。
如果可能的话,我想在将数据发送到数据库之前使用相同的查询检查任何重复的行
请给我一些提示......