Re: mysql question.

2007-04-03 Thread Mogens Melander
Hmmm, using distinct email in a query where you want to count email won't work. select mail, count(mail) as mailcnt from guest where voted='yes' group by mail order by mailcnt; should do the trick. On Tue, April 3, 2007 12:51, Me2resh Lists wrote: hi i need help regarding a sql query in my

Re: mysql question regarding distinct/group by...

2007-01-04 Thread ViSolve DB Team
Hi, dog fooID int size int id int dog fooIDsizeid 1 2 1 2 5 2 1 5 3 if i do a query select * from dog where fooID='1'; i get 1,2,1 1,5,3 Try, select * from dog where fooID=1 group by fooID; - which retrieves the first instance;

Re: mysql question regarding distinct/group by...

2007-01-04 Thread Arun Kumar PG
SELECT * FROM Dog GROUP BY FooId HAVING FooId = 1; This should also work. On 1/5/07, ViSolve DB Team [EMAIL PROTECTED] wrote: Hi, dog fooID int size int id int dog fooIDsizeid 1 2 1 2 5 2 1 5 3 if i do a query select * from dog

Re: mysql question regarding distinct/group by...

2007-01-03 Thread Dan Nelson
In the last episode (Jan 03), bruce said: i've asked something similar before.. but it appears something is going wrong... so, back to basics... i have the following test tbl. dog fooID int size int id int dog fooIDsizeid 1 2 1 2 5 2

Re: [mysql] Question about the reference manual

2004-08-04 Thread Jim Winstead
On Wed, Aug 04, 2004 at 02:46:50PM -0500, rdo mail list address wrote: Is the MySQL Reference Manual, by Widenius and Axmark (the one to which there is a link on the Documentation page of the mysql website, for sale by Barnes and Noble) the same reference manual that you can download? The

Re: [MYSQL] Question about 'SHOW PROCESSLIST' output columns

2003-06-25 Thread Egor Egorov
PAUL MENARD [EMAIL PROTECTED] wrote: I'm having an intermittent problem with a MySQL server that I have running on a Windows 2000 Advance server systems. This issue occurs every few days depending on the load of the system. Here are the details. MySQL version 3.23.42-nt (I know I

Re: MySQL Question

2002-10-08 Thread Roger Baklund
* David M. Gonzalez Salinas Does anybody knoy what is equivalent stmt in MySQL? select * from table1 where col1 in (select col1 from table2) This is called a subselect, and it is explained in the manual: URL: http://www.mysql.com/doc/en/ANSI_diff_Sub-selects.html -- Roger

re: MySQL Question

2002-10-08 Thread Victoria Reznichenko
David, Tuesday, October 08, 2002, 2:01:46 AM, you wrote: DMGS Does anybody knoy what is equivalent stmt in MySQL? select * from table1 DMGS where col1 in (select col1 from table2) You can re-write without subselects: http://www.mysql.com/doc/en/ANSI_diff_Sub-selects.html -- For

Re: MySQL Question

2002-09-10 Thread Nicholas Stuart
From my experince this is not possible. Is there any reason why you can not simply do two inserts following each other? INSERT INTO table1(column1) SELECT column1a FROM table2 WHERE [something] INSERT INTO table1(column2) VALUES(valueFromMemory) (as if you didnt know that already) =D There

Re: MySQL Question

2002-09-10 Thread Paul DuBois
At 17:16 -0700 9/10/02, Mark S Lowe wrote: I have to do an insert and need to nest a select inside. I have tons of documentation on a very simple version of this, however my requirements are one step beyond that. Here is what I'd like to do in MySQL: insert into table1 (column1, column2)

Re: MySQL Question

2002-09-10 Thread Nicholas Stuart
The optimization is understandable but I'm not sure how much it would affect it if you did the select outside the insert statment vs inside. Either way you are selecting the same thing but I dont know which way is better. Well just playing around with it for a bit I think I found something. The

Re: MySQL Question involving AUTO INCREMENT and PRIMARY IDs. - sql

2002-06-27 Thread Gerald Clark
That is a difference in the behavior of isam and myisam tables. jason wesley upton wrote: EXPLANATION: here's the pertinent piece of my sql create statement: ID INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (ID)); i have used this create statement numerous times without this problem. in the

Re: MySQL Question involving AUTO INCREMENT and PRIMARY IDs. - sql

2002-06-27 Thread William R. Mussatto
On Thu, 27 Jun 2002, jason wesley upton wrote: Date: Thu, 27 Jun 2002 14:05:34 -0500 From: jason wesley upton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: MySQL Question involving AUTO INCREMENT and PRIMARY IDs. - sql EXPLANATION: here's the pertinent piece of my sql create

RE: MYSQL question - Urgent

2002-04-30 Thread Gurhan Ozen
Hi Lucia.. 1- The answers might/will be depent on what type of installation you are planning to do. Will you compile source code, or install binaries, or , since you said you would be installing on Linux, will you install from RPMs? 2 - Yes , you need to do the installation as root . 3 - There

Re: MYSQL question - Urgent

2002-04-30 Thread Benjamin Pflugmann
Hi. Sorry, but I beg to differ. I think it is not a good idea to recommend to others to run the MySQL server as root. The manual explicitly recommends otherwise. On Mon, Apr 29, 2002 at 10:15:31PM -0600, [EMAIL PROTECTED] wrote: Questions: - Do I use root account to install the software?

RE: MYSQL question - Urgent

2002-04-29 Thread Mike
Questions: - Do I use root account to install the software? Yes to compile the source or do an RPM as seen below. See http://www.mysql.com/doc/L/i/Linux-RPM.html - What account do I use to create Innodb? Same - I am guessing here but I do all installs as root then give the needed permissions to

Re: MySQL question (bug?)

2002-01-13 Thread Sergei Golubchik
Hi! Unfortunately, I get too many e-mails to handle help requests which are sent directly to me. If you have purchased MySQL support, you may write to [EMAIL PROTECTED], and will get an answer quickly. If you would like to purchase support, please see the Support section of our web site:

Re: Mysql question and sql request. Are they the same?

2001-11-27 Thread Benjamin Pflugmann
Hi. On Tue, Nov 20, 2001 at 02:23:31PM +0100, [EMAIL PROTECTED] wrote: Hei I asked this question sometime ago but I did not get any answer :-( I think the problem is that people are not sure what you are referring to (includes me). and I can not find any explanation of this in the

Re: mysql question

2001-11-03 Thread DL Neil
I don't know how to remove users other than directly removing them from mysql.user table This may be very obvious but being a new mysql admin user how do I do what you say above, to delete the user from the user table. There doesn't appear to be any examples of this in the docs.

Re: mysql question

2001-11-02 Thread Mark Maunder
Jim Chivas wrote: Greetings: I saw a reply you sent to a mysql user about setting up new users to mysql. I am hoping you can clarify some questions for me. I referenced the url you gave out at the mysql.com/documentation/. It was suppose to show how to setup users but does not give

RE: mysql question

2001-11-02 Thread Rick Emery
: mysql question On Fri, 2 Nov 2001, Mark Maunder wrote: Jim Chivas wrote: snip.. I checked this site and it appears to match other docs I have. There are still no examples of removing users just revoking grants. What commands would tell me what users have what rights to what databases

RE: mysql question

2001-11-02 Thread Jim Chivas
] Subject: Re: mysql question On Fri, 2 Nov 2001, Mark Maunder wrote: Jim Chivas wrote: snip.. I checked this site and it appears to match other docs I have. There are still no examples of removing users just revoking grants. What commands would tell me what users have what rights

RE: mysql question

2001-11-02 Thread Steve Meyers
This may be very obvious but being a new mysql admin user how do I do what you say above, to delete the user from the user table. There doesn't appear to be any examples of this in the docs. You have a database named mysql. In there, there is a table named user. It's just a normal table,

Re: MySQL question.

2001-10-24 Thread alec . cawley
I am using phpMyAdmin which is MySQL database to create database. My OS is windows 2000. For example, I have a table City. It generates for me 3 files: City.frm, City.MYD, City.MYI My question is how I can connect to this table to do query, insert.by using Java or Visual basic. For

Re: MySQL question

2001-07-19 Thread MIKE TURNER
I thought about that after I sent it. First I will start with what my OS is. I am running Redhat 7.1. Kernel version 2.2.16-22(I believe). I used the i386 release. I did a rebuild of the src.rpm. then installed the rpm. I tried to set the root password as it told me but it said something like

Re: MySQL question

2001-07-18 Thread Rolf Hopkins
Have a look at what the error logs say. If that doesn't help, post the command used and error messages/logs (if relevant) to the list. - Original Message - From: MIKE TURNER [EMAIL PROTECTED] To: MySQL [EMAIL PROTECTED] Sent: Thursday, July 19, 2001 2:05 Subject: MySQL question I

Re: Mysql question (access rights)

2001-07-06 Thread T LaWall
may need to double quote the % sign. trav On Thu, 5 Jul 2001, Chris M wrote: I've got a question. In the otherwise-excellent Paul DuBois book, on page 427 or so it talks about how you can do this: GRANT SELECT ON menagerie.* TO ro_user@% IDENTIFIED BY dirt; So I tried something

Re: Mysql question (access rights)

2001-07-05 Thread Paul DuBois
At 9:20 PM -0600 7/5/01, Chris M wrote: I've got a question. In the otherwise-excellent Paul DuBois book, on page 427 or so it talks about how you can do this: GRANT SELECT ON menagerie.* TO ro_user@% IDENTIFIED BY dirt; So I tried something similar: mysql GRANT SELECT ON *.* TO mysql@%

Re: Mysql question

2001-05-15 Thread David Simmons - EliteUKServe.Net
mysql -u username -p enter your password use yourdatabase; create table mytablename(... (see the manual for proper syntax on creating tables) - Original Message - From: Terrell Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 12:28 PM

Re: MySQL question

2001-04-27 Thread Eric Fitzgerald
: MySQL question hi-- firstly, I am relatively new to mysql. I am having a problem getting text I enter into a perl script (for reasons of parsing and sending to my mysql database) to consistently get entered into the database. the perl script takes a mail message and makes the body

RE: MySQL question

2001-04-26 Thread Chris Herold
hi-- firstly, I am relatively new to mysql. I am having a problem getting text I enter into a perl script (for reasons of parsing and sending to my mysql database) to consistently get entered into the database. the perl script takes a mail message and makes the body of the message $body. It

Re: MySQL question

2001-03-23 Thread Gerald Clark
We pay for support here. In the last two years, I have only needed tor resort to it once, because the mailing list is very effective. When I needed to resort to my support contract, it was a real problem that the list would not have been able to solve. The problem was resolved within 24 hours.

Re: MySQL question

2001-03-22 Thread Thalis A. Kalfigopoulos
I don't know how you define 'minimal' but approximately 100+ emails per day from the user list and a response time from 5 minutes to 24 hours should be adequate for the average "small-time real estate company" as you call it. Coming to "What will you guys answer and not answer", I guess there

Re: MySQL question to ask

2001-02-26 Thread Peter Skipworth
select Name,Income,Out,(Income-Out) as Balance from tblname On Mon, 26 Feb 2001 [EMAIL PROTECTED] wrote: Dear all, Sorry to ask question again, or maybe i am just a beginner. I wanna ask: If there are 2 records Name Income Out Data1 1000 700 Data2

Re: MySQL question to ask

2001-02-26 Thread Samuel
Hi Jason! Give this a try for the required table you want to produce below... SELECT Name, Income, Out, (Income - Out) AS Balance FROM tablename; Sam. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 26, 2001 1:45 PM Subject: MySQL

Re: MySQL question to ask

2001-02-26 Thread Joseph Bueno
[EMAIL PROTECTED] a crit : Dear all, Sorry to ask question again, or maybe i am just a beginner. I wanna ask: If there are 2 records Name Income Out Data1 1000 700 Data2970500 If i want to have the output: Name

Re: MySQL question to ask

2001-02-26 Thread Steve Ruby
His balance is a running balance... Joseph, you will have to keep the running balance in some thing that you write to get the query.. you can't do a running sum in SQL directly. You can only use the examples people provided to get the net per line. Joseph Bueno wrote: [EMAIL PROTECTED] a

Re: MYSQL Question

2001-02-18 Thread Jeremy D. Zawodny
On Sun, Feb 18, 2001 at 08:24:47PM -0500, J Colleary wrote: Does MYSQL support the CREATE PROCEDURES command, or have stored procedures? If so, how do I access them? Nope. This is documented in the manual. Jeremy -- Jeremy D. Zawodny, [EMAIL PROTECTED] Technical Yahoo - Yahoo Finance