Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: how do i construct a sql select statement, where i want to get the where clauses out of an array

by pitbull3000 (Beadle)
on Aug 25, 2001 at 21:30 UTC ( #107845=note: print w/replies, xml ) Need Help??


in reply to Re: how do i construct a sql select statement, where i want to get the where clauses out of an array
in thread how do i construct a sql select statement, where i want to get the where clauses out of an array

bout the problem of an empty array i already thought, but the array shouldnt be empty it is filled with values out of a form, which invokes the script... but u never know... would it be some solution to put a zero as first id in the array, cause the zero wont be an id in the db table
  • Comment on Re: how do i construct a sql select statement, where i want to get the where clauses out of an array

Replies are listed 'Best First'.
Re: Re: how do i construct a sql select statement, where i want to get the where clauses out of an array
by George_Sherston (Vicar) on Aug 25, 2001 at 21:40 UTC
    Yes, or just put the whole thing in an if (@ids) { ... }loop - which would make it work quicker when @ids was empty

    George Sherston

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2022-12-07 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?