Register for your free account! | Forgot your password?

You last visited: Today at 13:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Sql Query "Except" help!

Discussion on Sql Query "Except" help! within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Question Sql Query "Except" help!

I want to delete weapons lines except blade lines so it should be like

PHP Code:
delete from _Table where _Column like 'WEAPON_CH%' except where _Column 'WEAPON_CH_BLADE' 
but it's not working like that, i tried google but no useful results found yet, so i hope if you guys have know how can i build that query...

Thanks in advance.
devdash is offline  
Old 08/19/2019, 08:02   #2
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 423
Received Thanks: 953
Except? Making exceptions?

You mean WHERE NOT? Think about how an IF condition works!
Quote:
DELETE FROM _Table
WHERE _Column LIKE 'WEAPON_CH%'
AND NOT _Column = 'WEAPON_CH_BLADE'
JellyBitz is offline  
Thanks
1 User
Old 08/19/2019, 10:00   #3
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 348
Quote:
Originally Posted by alydandy View Post
I want to delete weapons lines except blade lines so it should be like

PHP Code:
delete from _Table where _Column like 'WEAPON_CH%' except where _Column 'WEAPON_CH_BLADE' 
but it's not working like that, i tried google but no useful results found yet, so i hope if you guys have know how can i build that query...

Thanks in advance.
How about using Google before posting nonesene
Isoline* is offline  
Old 08/19/2019, 10:05   #4

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by Isoline* View Post
How about using Google before posting nonesene
How about reading before posting hate?!

Quote:
Originally Posted by alydandy View Post
i tried google but no useful results found yet
Quote:
Originally Posted by JellyBitz View Post
Except? Making exceptions?

You mean WHERE NOT? Think about how an IF condition works!
Thanks a lot for your post, i will try it now.
devdash is offline  
Old 08/19/2019, 10:08   #5
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 348
Quote:
Originally Posted by alydandy View Post
How about reading before posting hate?!





Thanks a lot for your post, i will try it now.
Its not hate its common sense, you can get the syntax of any query within seconds instead of posting here and waiting for someone to reply lol
Isoline* is offline  
Old 08/19/2019, 10:11   #6

 
devdash's Avatar
 
elite*gold: 14
Join Date: Feb 2016
Posts: 1,607
Received Thanks: 445
Quote:
Originally Posted by JellyBitz View Post
Except? Making exceptions?

You mean WHERE NOT? Think about how an IF condition works!
Works perfectly, that's what i was looking for, thank you so much, and best wishes for your projects.

Quote:
Originally Posted by Isoline* View Post
Its not hate its common sense, you can get the syntax of any query within seconds instead of posting here and waiting for someone to reply lol
Common sense tells me it was a hate, and now switched to Stubbornness,
but i will choose to believe you instead of my common sense, so..
Thanks for trying to help me and save my time by telling me about google, i appreciate it.

#Topic Close please.
devdash is offline  
Reply


Similar Threads Similar Threads
[Buying] """""PUBG Key""""""""
09/28/2017 - PlayerUnknown's Battlegrounds Trading - 5 Replies
Moin, ich suche noch einen Key von PUBG. Bezahle per PP.(kein Family& Friends) Nur mit RAT! mfg :mofo:
WEAPONSCRIPT!!!!!!!!!!!!!!!!!!!!!!!!!HOT"""""""""" """""""""""""""""""""
08/06/2011 - WarRock Hacks, Bots, Cheats & Exploits - 7 Replies
detetected



All times are GMT +1. The time now is 13:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.