Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Databasing
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 11-19-2009, 02:26 PM
  #1
vasmav
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 8
iTrader: (0)
vasmav is an unknown quantity at this point
such query is possible in mysql?

Hi
i wanted to ask if i can use a query like this :

DELETE FROM groupspu WHERE (proistamenos && dokimi && public && admin) = '0'

because when i run it it deletes every row and not only the ones that the fields at the query are equal to zero.

It is important the certain format that's why i'm asking if this query is possible withou altering the (proistamenos && dokimi && public && admin) . Because that info is taken from other place of the program.

Thanks in advance
vasmav is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-19-2009, 02:35 PM
  #2
¥åßßå
Blonde Bimbo
 
¥åßßå's Avatar
 
Join Date: Jul 2004
Posts: 2,413
iTrader: (0)
¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all¥åßßå is a name known to all
DELETE FROM your_table WHERE foo='0' AND bar='0' AND 'hello_world' = '0' != ( foo == true && bar == true && hello_world == true ) == 0 ?

¥
__________________
I may have opened the door, but you entered of your own free will

¥åßßå is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-19-2009, 02:48 PM
  #3
vasmav
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 8
iTrader: (0)
vasmav is an unknown quantity at this point
Thanks for your help, manage to fix it by altering the part that i couldn't..

DELETE FROM groupspu WHERE admin ='0' AND public ='0' AND dokimi ='0'  ...

made it like that and worked!

Thanks alot for your answer!
vasmav is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 07:03 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.