Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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?
[erix]: I saw a common kingfisher and a couple of bullfinches
[erix]: bullfinch ( a male and a female )
erix learned the word 'portaging' not so long ago (from vikings lugging their ships from one river-system to another)
[choroba]: my best run so far
[erix]: I think they build a portaging installation for yachts here not so long ago - lemme google it
[erix]: choroba ah, you should have sprinted 7 s off that :)
[erix]: (but then there's always a next (im)possible goal)
Corion avoids running by starting on time
[choroba]: my phone showed me 1 hour 10 km which was my goal, it changed a bit after uploading to the website

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-05-24 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?