★ wanayoo — archive 1999 http://www.devshed.com/Server_Side/MySQL/Intro/comments.html/c1013/Nouvelle recherche | Portail wanayoo

Developer Shed
Thursday, 08.17.2000  
One of the fastest SQL (Structured Query Language) database servers currently on the market is the MySQL server, developed by <A HREF=/old?u=http%3A%2F%2Fwww.devshed.com%2FServer_Side%2FMySQL%2FIntro%2Fcomments.html%2Fc1013%2F%26quot%3Bhttp%3A%2Fwww.tcx.se%26quot%3B%26gt%3BT.c.X.&y=1999 DataKonsultAB</A>. MySQL, available for download at <A HREF=/old?u=http%3A%2F%2Fwww.devshed.com%2FServer_Side%2FMySQL%2FIntro%2Fcomments.html%2Fc1013%2F%26quot%3Bhttp%3A%2Fwww.mysql.com%26quot%3B%26gt%3Bhttp%3A%2Fwww.mysql.com%26lt%3B%2FA%26gt%3B%2C&y=1999 offers the data base programmer with an array of options and capabilities rarely seen in other database servers. What's more, MySQL is free of charge for those wishing to use it for private and commercial use.

HOME > SERVER SIDE > MYSQL > ARTICLE > COMMENTS    PHP SOURCE

Power Search
Free Newsletter:


Client Side
DHTML
Flash
Graphics
JavaScript
XML

Server Side
Administration
JServ
MySQL
Perl
PHP
Python
Roxen
Zend
Zope

Tools
HTML Editors
Graphic Editors
FTP Programs

Dev Talk
Forums
Mailing List
Book Samples
Brain Dump
Developer News
Feedback

ClipScripts
Add script
Edit script

Other Stuff
DevShed RDF
Propaganda!


Advertise
on DevShed
.
Beginning MySQL Tutorial
One of the fastest SQL (Structured Query Language) database servers currently on the market is the MySQL server, developed by T.c.X. DataKonsultAB. MySQL, available for download at http://www.mysql.com, offers the data base programmer with an array of options and capabilities rarely seen in other database servers. What's more, MySQL is free of charge for those wishing to use it for private and commercial use.

Name: Dan
Subject: SQL Syntax
Date: 08-05-1999 05:36AM

Hello. My apologies if this sounds convoluted. Using MySQL, is there a way to query only records containing certain data? I am trying to get the emails with only the 'net' suffix from the "email" column, but only from records containing certain names in the "firstname" column. I've tried and failed with the following queries:


SELECT *
FROM Members
WHERE Members.firstname="kristy" 
OR Members.firstname="jenny" 
OR Members.firstname="kimpon" 
AND Members.email="*net*"  ;
--------------------------------------------
SELECT *
FROM Members
WHERE (Members.firstname="kristy" 
AND Members.email="*net*") 
OR (Members.firstname="jenny" 
AND Members.email="*net*")
OR Members.firstname="kimpon") 
AND Members.email="*net*";

If this cannot be done in one step, could anyone please brief me on how I can query a query using MySql? Thanks much, Dan H.



Other posts in this thread:
 Top
 • SQL Syntax  Dan  08-05-1999 05:36AM 


Reply to this post:
Name:

Preview Comment.
Notify me of replies to this message.
Email:
Subject:
Tip: Put any source code between [code][/code] tags to increase readability


Visit the MySQL Forum!

New On DevShed:
• MySQL Developer Contests PostgreSQL Benchmarks
• PHP 101 (part 3) - Chocolate Fudge And Time Machines
• MaxSQL Announced
•  PHP 101 (Part 2) - Shakespeare's Rose
• PHP 101 (Part 1) - Secret Agent Man
• The Search For The Perfect Web Host
• Perl 101 (Part 5) - Sub-Zero Code
•  Submit Your News..

Hot Forum Topics:
• Credit Cards
• Backing-up in Netscape
• Want help from advanced PHP users
• making mysql timestamp look friendly
• display performance
• display performance


Adsmart Network ad
Copyright © 1997-2000 ngenuity. All rights reserved. Privacy Policy.