★ wanayoo — archive 1999 http://www.devshed.com/Server_Side/MySQL/Intro/comments.html/c1280/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%2Fc1280%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%2Fc1280%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 Monahan
Subject: Re: DISTINCT Clause Problem
Date: 09-08-1999 10:05PM

I am having the *exact* same problem. I don't know what I'm doing wrong. I am performing the same query:

mysql> SELECT DISTINCT
-> COUNT(SELECT userName FROM test3responses)
-> FROM test3responses;
ERROR 1064: You have an error in your SQL syntax near 'SELECT userName FROM test3responses)
FROM test3responses' at line 2
mysql> SELECT COUNT
-> (SELECT DISTINCT userName FROM test3responses)
-> FROM test3responses;
ERROR 1064: You have an error in your SQL syntax near '(SELECT DISTINCT userName FROM test3responses)
FROM test3responses' at line 2
mysql>

     As you can see, I tried different forms of the same query, but I'm clueless as well. Please let me know if you find a solution.

Thanks!



Other posts in this thread:
 Top
 • DISTINCT Clause Problem  John Mueller  09-08-1999 09:34AM 
       • Re: DISTINCT Clause Problem  Dan Monahan  09-08-1999 10:05PM 
             • Re: DISTINCT Clause Problem  bugi  09-23-1999 05:25PM 


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.