Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found