Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: simple MySQL prob

by screamingeagle (Curate)
on Mar 03, 2002 at 21:44 UTC ( #149020=note: print w/replies, xml ) Need Help??


in reply to simple MySQL prob

u can do this to check if a value exists :
fire an SQL query before the the INSERT statement to check whether the value exists :
select count(*) VALEXISTS from tablename where fld = 'fldvalue'
if the value does not exist, the VALEXISTS column will be 0. depending on this value, u can decide whether to fire the INSERT statement or not
:-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://149020]
help
Chatterbox?
[marto]: good morning all
[Corion]: Hi marto!
[Corion]: I just found out that in $current_top_prior ity_project , the part I am in is not even in the top three worries. That's somewhat bad, not because I'm happy with being a top worry but because that means that I don't even know how bad the rest ...
[Corion]: ... of the situation is :-)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-07-26 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (385 votes). Check out past polls.