DragonFly Posted May 22, 2009 Posted May 22, 2009 Hello,If you want to find a row in a table you can use multiple SQL Queries. But.... Some people don't know this queries. So here are some. I am using some of IPB-Row Names :steph: So... If a table is this:id|name|mgroup|posts1 | DragonFly | 4 | 8522 | Buster | 1 | 13 | zamg0d1 | 6 | 8244 You can look for a table with multiple options:AND: This is saying that you need to have both of the options you filled inOR: This is looking for just one of the two (or more) options you filled in. If I fill this into a query:SELECT * FROM ibf_members WHERE mgroup = "4" OR posts > 800This will give me all the persons with a postcount above 800 or are in group 4. So this are DragonFly and zamg0d1. If I fill this in:SELECT * FROM ibf_members WHERE mgroup = "4" AND posts > 800With this query I will get only DragonFly. Because he is the only person in the table with more posts then 800 and is in group 4. If you want an alfabetic order of all your rows you can put in this:SELECT * FROM ibf_members ORDER BY nameThis will give this:id|name|mgroup|posts2 | Buster | 1 | 11 | DragonFly | 4 | 8523 | zamg0d1 | 6 | 8244You can see the names are in an alfabetic order :lol: I hope you have some help with this tutorial :) Greetz,DragonFly
Management terabyte Posted May 22, 2009 Management Posted May 22, 2009 Can you please post this tutorial in the tutorial section? (link above in the member bar) This is an area for more generic questions not IP.Board related :) Board Rules - Available Products - Need a Custom Work? < Don't PM me for support, post in the forum or submit a ticket from the client area instead! >
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now