Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How to match elements of array

by PeterPeiGuo (Hermit)
on Dec 03, 2010 at 03:38 UTC ( [id://875073]=note: print w/replies, xml ) Need Help??


in reply to How to match elements of array

Can make this simpler... I have two alternatives:

1) Create a unique index on file name column, and let the insert fail if it's a duplication.

2) Use SQL in clause, so use one query, you can figure out whether any of those four names exist.

Peter (Guo) Pei

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://875073]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2025-06-14 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.