LEFT JOIN not working on 5.0.16 - urgent help

2005-11-23 Thread Terence
department_master dm ON um.department_id = dm.department_id WHERE um.role_id = rm.role_id = Has the left join syntax changed? -- Terence Le Grange Senior IS Executive - ITS Sunway University College Email: [EMAIL PROTECTED] Phone: (+603) 7491 8623 ext. 8078 Website: http://www.sunway.edu.my

Re: SQL statement help

2005-10-17 Thread Terence
Turn off your auto commit (if using innodb) and run the queries. See how many rows it updates and compare them. If it matches commit it. Else rollback. C.F. Scheidecker Antunes wrote: Another thing is that table2 might not have a match. C.F. Scheidecker Antunes wrote: I actually forgot

Re: Duplicate column error when creating view on 5.0.13

2005-10-09 Thread Terence
[EMAIL PROTECTED] wrote: Does this make better sense? Yes, many thanks and regards, Terence -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Terence
Hi All, I get a duplicate column error on 5.0.13 when creating a view. Am I doing something wrong here or do I submit a bug report? This should be allowed as the col names are not duplicated. Reproduce: create table `ticket_master` ( `ticket_id` int (5) NOT NULL AUTO_INCREMENT ,

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Terence
Johan Höök wrote: Hi Terence, I think your problem lies in your SELECT * If you look at the columnheaders below you get category_id twice. I guess you have to specify your columns with aliases. /Johan Hi Johan, Nope, if I change the column name to category_id1 then it's okay. See

Re: Total newb at performance tuning mysql

2005-09-09 Thread Terence
Scott Haneda wrote: Unless I am totally off base here, the mysql docs tell very little in regards to how to performance tune mysql. So far I have found this article to help: http://www.databasejournal.com/features/mysql/article.php/10897_1402311_3 But it still leaves me with a ton of

Timezone query similiar to pgsql

2005-09-09 Thread Terence
various timezones, and so I plan to store everything in GMT (server time) and select the time based on their timezone preference which is stored in a user preference table. Suggestions always welcome :) Thanks Terence -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: Birthday strategy

2005-08-24 Thread Terence
Wouldnt that only work for the current year? For example I was born on 1970-08-25, select id from members where birthday = now(); wouldnt return my birthday if it was today. Or am I missing something new in 5.0.11? Gleb Paharenko wrote: Hello. Why don't you want to use just: select id

Re: Birthday strategy

2005-08-24 Thread Terence
Try to avoid running functions against columns, unless you have very little data, as it doesnt scale well (I'm talking 6 figure tables). Two options I can suggest are: 1. Write a scheduled job using your MONTH() DAY() to replace the values into a birthdays table on a daily basis 2. Use 2

Re: Info

2005-08-19 Thread Terence
You should be asking the snort people whether it works with mysql version 4. Alternatively you should provide more information if you are getting errors from mysql. [EMAIL PROTECTED] wrote: Could you let me know if mysql-standard-4.1.13-sun-solaris2.9-sparc works with snort-2.4.0. I was

Re: cannot drop database

2005-08-15 Thread Terence
Try DROP database `ÃáãÃáÃ`; Gary Huntress wrote: I need to drop a database named ÃáãÃáà using the mysql client. I'm getting you have an error in your sql syntax for the command DROP database ÃáãÃáÃ; I'm sure this is a character set issue. How can I drop this database? Regards,

Table and Data access only through procedures

2005-08-09 Thread Terence
:10:51 +0800 From: Terence [EMAIL PROTECTED] To: mysql@lists.mysql.com mysql@lists.mysql.com Hi List, I belive version 5 does not allow me to grant access to execute procedures, but deny updates to tables directly? I am attempting to ensure that all data modification is done through procedures

Re: Persistent Corruption

2005-07-29 Thread Terence
Also check your kernel version. We had the same problems running on the old RH 7.3 kernel (2.4.17 was it?) After upgrading to RH9 it was fine. Chris McKeever wrote: MySQL 4.0.16 I am having this annoying persistent corruption issue, and am wondering if anyone has any suggestions. I have two

Re: SQLyog Enterprise

2005-07-20 Thread Terence
It's a bit weak on foreign keys, no support for procedures and views (if you're looking at MySQL 5) from a gui perspective (from what I have found). Other plus points are it has a http tunnel feature if you host your mysql database with someone (requires php on the hosted server), so you can

Tabls access only through procedures

2005-07-14 Thread Terence
Hi List, I belive version 5 does not allow me to grant access to execute procedures, but deny updates to tables directly? I am attempting to ensure that all data modification is done through procedures. Any tips or ideas when this will be available or work-arounds? Thanks, Terence

Re: is keys a restricted keyword

2005-06-09 Thread Terence
wrap it in `` e.g. `keys` James Black wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a db named keys, and when I tried to do grant select,insert,update,delete on keys.* to [EMAIL PROTECTED] I get an error, about SQL syntax near 'keys.*'. Should this work? I am using mysql 5.0.6

Re: performance on single column index with few distinct values

2005-05-29 Thread Terence
on a particular master_id, and ordering by ticket_id, along with the limit I think MySQL would be able to use such an index in an optimization. -Daniel -Original Message- From: Terence [mailto:[EMAIL PROTECTED] Sent: Friday, May 27, 2005 10:52 PM To: mysql@lists.mysql.com Subject: performance

performance on single column index with few distinct values

2005-05-27 Thread Terence
tables for each helpdesk? Such as: helpdesk_tickets_1 helpdesk_tickets_2 helpdesk_tickets_3 etc. and then using a session value to query the table? 3) Any other tips or advice? (I notice my query time doubles from 100k rows to 150k rows) Thanks for any help... Terence -- MySQL General Mailing

Increase Integer Key Length

2005-05-13 Thread Terence
Hi List, When using EXPLAIN, the key length on an integer column is stated as 4. However the column is running into 7 digits, and that's affecting our performance. Anyway to increase the key length? From the manual I have found that it can be done for varchar cols. Thanks for any help. -- MySQL

mysqldump and innodb - set foreign_key_checks=0

2004-12-21 Thread Terence
Hi, After reading the docs I realise that in order to use mysqldump with innodb tables i need to include SET FOREIGN_KEY_CHECKS=0; at the top of my dump file. Is there anyway to do this when my slave starts up or some other way. The dump file is huge and it takes ages to open and put the line

Error connecting to master: Can't connect to MySQL server on 'IPADDR # MUST BE SET' (111)

2004-12-20 Thread Terence
Hi, I am trying to setup replication on MySQL. Version 4.1.0alpha Using: ./bin/mysql -h IPADDR -u replication -p I can connect successfully, but my error logs show 041221 1:12:41 Slave I/O thread: error connecting to master 'replication # MU@IPADDR # MUST BE SET:3306': Error: 'Can't connect to

Re: Error connecting to master: Can't connect to MySQL server on 'IPADDR # MUST BE SET' (111)

2004-12-20 Thread Terence
instance is trying to connect (with tcpdump, netstat for example). Terence [EMAIL PROTECTED] wrote: Hi, I am trying to setup replication on MySQL. Version 4.1.0alpha Using: ./bin/mysql -h IPADDR -u replication -p I can connect successfully, but my error logs show 041221 1:12:41 Slave I/O thread

table_cache size for large value in opened_tables

2004-07-25 Thread Terence
Hi all, My system reports: Open_tables 512 Opened_tables 24,429 The docs say that if the latter is high I should increase the table cache size. (currently at 512) How does one decide what size to increase it to? And is there a problem with one of the applications that's making this figure so

Is there any Performance Improvement / Tuning Software for MySQL?

2004-07-23 Thread Terence
Is there any kind of performance / tuning guide software for MySQL? I am looking for something which can look at the SHOW VARIABLES and SHOW STATUS commands, do some calculations and give some tips on how to improve the system? Any such product available? -- MySQL General Mailing List For list

Disable the autocommit

2004-07-21 Thread Terence
According to: http://dev.mysql.com/doc/mysql/en/COMMIT.html With START TRANSACTION, autocommit remains disabled until you end the transaction with COMMIT or ROLLBACK. The autocommit mode then reverts to its previous state. Is there anyway to disable the revert? I don't want to have to SET

Re: MySQL Web Clustering...

2004-06-22 Thread Terence
Apparently OpenMosix won't work with MySQL because MySQL uses Shared Memory. There is apparently a component called MAASK which might help. Roy Nasser wrote: Hi All, We have recently acquired some new machines for our ASP service, and I am investigating different options and setups to optimize

Know of a MySQL powered Instant Messaging system

2004-06-08 Thread Terence
We're looking for a client-server instant messaging system (opensource), powered by MySQL if possible. Anyone know of one? I've been taking a look at Gaim, Sim etc, but these all piggyback on Yahoo, MSN etc which is not what we're looking for since it must run on our lan. Thanks for any ideas...

Re: Know of a MySQL powered Instant Messaging system

2004-06-08 Thread Terence
- Hash: SHA1 On Tuesday 08 June 2004 01:56 am, Terence wrote: We're looking for a client-server instant messaging system (opensource), powered by MySQL if possible. Anyone know of one? I've been taking a look at Gaim, Sim etc, but these all piggyback on Yahoo, MSN etc which is not what we're

Re: error

2004-05-31 Thread Terence
i had the same problem, for me it was here: c:\mysql\lib\opt and I copied it to c:\mysql\bin\ that got me up and running. maybe it'll work for you. cheers - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 10:38 AM Subject: error I've

Limit in sub-query - when can we expect it?

2004-05-06 Thread Terence
Hi List, When can we expect limits in sub-queries? I am currently on 4.1.0. 1235 - This version of MySQL doesn't yet support 'LIMIT IN/ALL/ANY/SOME subquery' Query: -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

Re: two auto-inc fields possible ?

2004-04-14 Thread Terence
nope i don't think it's possible BUT you can use the concat feature to get the result: select concat('NEW-',running_id), concat('DEP-',running_id') so long as your running numbers are the same...we use this for our helpdesk system too :) good luck. - Original Message - From:

Error: 5 - Out of memory (Needed 2298807288 bytes)

2004-04-13 Thread Terence
or some other process uses all available memory. If not you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space Any help is appreciated. Thanks Terence -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Get the total as a percentage of two grouped results

2004-04-08 Thread Terence
) / count(total records) * 100) FROM table I need to be able to divide the number of absent by the total number of results (eg how many times the student attended class). Right now it's in two queries and I was wondering if it's possible. Thanks Terence -- MySQL General Mailing List For list archives

Re: If DataBase Exists

2004-03-23 Thread Terence
This works on 4.1.1, not sure if it works on 4.0.14: show databases like '%backups%' - Original Message - From: A Z [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 12:33 AM Subject: If DataBase Exists MySQL 4.0.14 Possible to query for existence of a DB.

Re: Strange behavior, Table Level Permission

2004-03-22 Thread Terence
Will be fixed in 4.1.2? When can we expect that to be out? Anyone with an idea? (Also facing this problem here) - Original Message - From: Victoria Reznichenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 22, 2004 3:57 PM Subject: Re: Strange behavior, Table Level

SQL Group by months, return all months even if zero

2004-03-21 Thread Terence
Hi, Is there a short way to return the results from a query grouped by months and return zero if no results found: eg: SELECT count(*) as total, monthname(col) FROM table GROUP BY monthname(col) To return: 5 - Jan 0 - Feb 3 - Mar 0 - Apr etc. Just wondering. I know the long way to do it, by

Key Buffer Size

2004-03-19 Thread Terence
Hi, Can somebody tell me whether this is good or bad: Our mysql server has key_buffer_size = 402,653,184 (without the commas) The MySQL administrator tool indicates a 100% usage most of the time, and 362,324,992 as current usage within 24 hours which builds up very fast. Are there memory leaks

Re: Privilege to single database being revoked occasionally

2004-03-11 Thread Terence
Pendleton [EMAIL PROTECTED] To: 'Terence ' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 10:41 PM Subject: RE: Privilege to single database being revoked occasionally Is it the same database, same user? Does it follow any maintenance or large import? -Original Message

Privilege to single database being revoked occasionally

2004-03-10 Thread Terence
for debugging purposes, please let me know. Thanks Terence -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Query to another server

2004-02-16 Thread Terence
you'll need to create temporary tables in one of the servers based on the results of the other and then join. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 2:54 PM Subject: Query to another server Is it possible to query one server

Does 5.0 contain the features of 4.1 and 4.1.1?

2003-12-30 Thread Terence
procedures and hence the question...thanks! Terence -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: 100,000,000 row limit?

2003-12-24 Thread Terence
Just to help you along, why test 100m when you can test 1b SELECT FORMAT(count(*),0) as one_billion_rows FROM test2.test_size 1,027,346,573 And so as we can see, mysql can handle pretty big tables. Rgds - Original Message - From: Andrew Braithwaite [EMAIL PROTECTED] To: 'Paul DuBois'

Re: Error: 127

2003-12-21 Thread Terence
Just do a check and repair: (or just repair to fix it) CHECK TABLE your_table REPAIR TABLE your_table - Original Message - From: Jacob Joseph [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 22, 2003 12:36 PM Subject: Error: 127 Hi All, I have a MySQL4.0 installation

Re: Updating table1 from table2

2003-12-18 Thread Terence
Try something like this: INSERT INTO table1 (common_field) SELECT common_field FROM table 2; - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:42 AM Subject: Updating table1 from table2 Hi: I am new to MySQL and can not find how to

Re: Production problem porting from PHP to ASP

2003-12-10 Thread Terence
We just developed and re-wrote applications on PHP from a previous ASP environment. The performance improvement from ASP-ODBC-MySQL to PHP-MYSQL ranged from 20-50% in some cases, so it's pretty normal to expect a much slower response. Also sorry to hear about the decision. Terence

Re: Mysql user

2003-12-09 Thread Terence
SELECT user FROM mysql.user; - Original Message - From: Binay [EMAIL PROTECTED] To: mysql users [EMAIL PROTECTED] Sent: Friday, December 05, 2003 3:25 PM Subject: Mysql user Hi all, Can any one tell me the command to list all mysql users ??? Thanks in advance Binay -- MySQL

Interested in MySQL Training in Malaysia or Singapore?

2003-12-08 Thread Terence
! Terence -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Database corruption

2003-09-24 Thread Terence
We had the same problem when running on linux with the 2.4.18 kernel. Upgraded to the 2.4.20 and no problems since. Don't know if that's your problem, since you didnt mention kernel versions. Cheers Terence - Original Message - From: Quentin Bennett [EMAIL PROTECTED] To: [EMAIL

MySQL 4.1 Date Comparing

2003-09-09 Thread Terence
Dear All, We recently upgraded from 3.23 to 4.1. We used to use queries such as: SELECT field FROM table WHERE date_field like '2003-10-10%' (The date_field is a datetime field) Since we found the performance quicker than using the date functions. However this no longer works in 4.1, and the

mysql-standard-4.1.0-alpha-pc-linux-i686.tar.gz changed since April 12 2003?

2003-08-19 Thread Terence
Dear All, Has the alpha release mysql-standard-4.1.0-alpha-pc-linux-i686.tar.gz changed since April 12 2003? Just want to save myself a few hours downloading... I am putting it into production shortly, and was wondering too if there's any news on the stable release of the same? Thanks Terence

Re: month by month count

2003-08-19 Thread Terence
select count(*), monthname(yourfield) from yourtable where year = '2003' group by monthname(yourfield) - Original Message - From: Scott Haneda [EMAIL PROTECTED] To: MySql [EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 12:38 PM Subject: month by month count I need to generate record

Error 127, some questions

2003-08-14 Thread Terence
, timeaccess datetime , remote_addr varchar(30) , include varchar(50) , PRIMARY KEY (id), UNIQUE id (id), INDEX others (include,username) ); Thanks alot for your help. Rgds Terence -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Running Total of a column on a SELECT

2003-08-14 Thread Terence
Dear All, Is it possible to add the the running total of a column to the next row, something like this: item,amount - x,100 y,200 z,50 and get a result like this: item,amount - x,100 y,300 z,350 Thanks -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: Error 127, some questions

2003-08-12 Thread Terence
Redhat 7.3 Kernel linux-2.4.18-3 Rgds Terence - Original Message - From: Richard Gabriel [EMAIL PROTECTED] To: Terence [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 2:02 AM Subject: Re: Error 127, some questions What OS/kernel are you running? Thanks. Richard

Multiple-step OLE DB operation generated errors solution

2003-06-30 Thread Terence
Thought I might share this with others. I recently upgraded MyODBC from 2.50-39 to 3.51.06 When I ran simple select statements from an ASP page in which the fields were empty, I would get the following errors: Microsoft OLE DB Provider for ODBC Drivers (0x80040E21) Multiple-step OLE DB operation

Re: SELECT single record

2003-06-26 Thread Terence
SELECT LIMIT 1; - Original Message - From: [EMAIL PROTECTED] To: MySQL List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 1:08 PM Subject: SELECT single record Thanks everybody for all you great help! Ok, this statement will select all of my records nicely:

Re: ETA on 4.1

2003-06-18 Thread Terence
I asked the same question 2 or 3 months ago, and was told a week or two. The guys from MySQL have to make sure the release is stable first. - Original Message - From: Sebastian Bergmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 3:51 PM Subject: Re: ETA on 4.1

Re: mySql Command Console

2003-06-05 Thread Terence
hostname: localhost username: root password: leave blank rgds - Original Message - From: Richard Adler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 06, 2003 11:13 AM Subject: mySql Command Console can you help me with mySql control console. it is presenting me with a

Re: Passwords don't work in a WinME installation?

2003-04-01 Thread Terence
Try, insert into user ('host', 'user', 'password') values ('localhost', 'chicken', password('soup')); flush privileges; the password field needs to be encrypted with the one-way password function. rgds - Original Message - From: Helge Moulding [EMAIL PROTECTED] To: [EMAIL

Re: processlist

2003-04-01 Thread Terence
seconds - Original Message - From: Martin Hudec [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 3:55 PM Subject: processlist Hello all at mysql list, can anyone tell me, please, what kind of format is Time in PROCESSLIST? thanks -- Martin Hudec

Re: MySQL and Redhat 7.3

2003-03-11 Thread Terence
Check the log for error messages, it's in the data directory... /usr/local/mysql/data/ - Original Message - From: b b [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 6:27 AM Subject: MySQL and Redhat 7.3 Greetings, I am new to this list so I don't know if this

Database Questions

2003-03-05 Thread Terence
Hi All, Can MySQL give some indication of how many questions are being asked to each database? Using the show variables, I can get the total questions, but was wondering if it's possible to get it broken down on a per database view? Rgds Terence query sql

Re: Help with a putting a slash into a record in mysql...

2003-02-24 Thread Terence
try using a double slash \\ - the first one acts as the escape character. also works for the ' - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 6:52 AM Subject: Help with a putting a slash into a record in mysql... I have mysql

Re: Question - Query

2003-01-27 Thread Terence Ng
,'COSU84413670',14724.72,'2003-03-05'); INSERT INTO lcreceive VALUES (53,42.7090,'COSU84413690',29042.12,'2003-03-04'); INSERT INTO lcreceive VALUES (54,22.0430,'COSU84413730',13887.09,'2003-03-05'); Best regards, Terence Ng --- [EMAIL PROTECTED] wrote: Hello, Yes I think I see what you

Re: Question - Query

2003-01-22 Thread Terence Ng
First of all, thanks for your help. I have discovered that the result from: SELECT bank, SUM(unit_price_us * order_cbm) FROM lcopen GROUP BY bank; is different to the query you provided (row OPEN). How can I solve it? Terence Ng --- [EMAIL PROTECTED] wrote: Hello Terence, I posted

Re: Question -Subselect

2003-01-11 Thread Terence Ng
Please help! I already know that my query is wrong. I have identified it. But what is the solution to my query? --- gerald_clark [EMAIL PROTECTED] wrote: I answered this yesterday. Your FROM must precede your WHERE. Terence Ng wrote: How do I correct this SQL code: 2 tables

Question - Query

2003-01-08 Thread Terence Ng
SELECT lcopen.bank, SUM(lcopen.unit_price_us*lcopen.order_cbm) * 7.8 AS open, # SUM(lcreceive.amount_us) where lcreceive.due_date current_date, # # the above statement is not correct # FROM lcopen, lcreceive AND lcopen.id=lcreceive.id GROUP BY lcopen.bank; Terence Ng

Question -Subselect

2003-01-08 Thread Terence Ng
SELECT lcopen.bank, SUM(lcopen.unit_price_us*lcopen.order_cbm) * 7.8 AS open, # SUM(lcreceive.amount_us) where lcreceive.due_date current_date, # # the above statement is not correct # FROM lcopen, lcreceive AND lcopen.id=lcreceive.id GROUP BY lcopen.bank; Terence Ng

Question - subselect

2003-01-08 Thread Terence Ng
SELECT lcopen.bank, SUM(lcopen.unit_price_us*lcopen.order_cbm) * 7.8 AS open, # SUM(lcreceive.amount_us) where lcreceive.due_date current_date, # # the above statement is not correct # FROM lcopen, lcreceive AND lcopen.id=lcreceive.id GROUP BY lcopen.bank; Terence Ng

RE: Question - SELECT

2003-01-05 Thread Terence Ng
=lcreceive.id GROUP BY lcopen.bank; Like this? -Original Message- From: Terence Ng [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 7:09 PM To: mysql Subject: RE: Question - SELECT Thanks for your help, but I just want /* this condition */ lcreceive.due_date

Question - SELECT

2003-01-04 Thread Terence Ng
, # # the above statement is not correct # FROM lcopen, lcreceive AND lcopen.id=lcreceive.id GROUP BY lcopen.bank; #this condition :lcreceive.due_date current_date #only affect to : SUM(lcreceive.amount_us) #and not : #SUM(lcopen.unit_price_us*lcopen.order_cbm) * 7.8 AS open Terence Ng

Question - SELECT

2003-01-03 Thread Terence Ng
lcreceive.due_date current_date AS receive, # # the above statement is not correct for the # additional condition # FROM lcopen, lcreceive AND lcopen.id=lcreceive.id GROUP BY lcopen.bank; Terence Ng _ Lonely Christmas(³¯«³¨³)¡A­·ºå»P­·(Twins)¡AµL¶¡¹D

Question - SELECT

2003-01-03 Thread Terence Ng
current_date AS receive, # # the above statement is not correct for the # additional condition # FROM lcopen, lcreceive AND lcopen.id=lcreceive.id GROUP BY lcopen.bank; Terence Ng _ Lonely Christmas(³¯«³¨³)¡A­·ºå»P­·(Twins)¡AµL¶¡¹D(¹q¼v)... ¦ÜIn¤â

Question - SELECT

2003-01-03 Thread Terence Ng
lcreceive.due_date current_date AS receive, # # the above statement is not correct for the # additional condition # FROM lcopen, lcreceive AND lcopen.id=lcreceive.id GROUP BY lcopen.bank; Terence Ng _ Lonely Christmas(³¯«³¨³)¡A­·ºå»P­·(Twins)¡AµL¶¡¹D

RE: Question - SELECT

2003-01-03 Thread Terence Ng
Thanks for your help, but I just want /* this condition */ lcreceive.due_date current_date /* affect to */ SUM(lcreceive.amount_us) /* and not */ SUM(lcopen.unit_price_us*lcopen.order_cbm) * 7.8 AS open Terence --- Christensen, Dave [EMAIL PROTECTED] ªº¶l¥ó¤º®e¡G SELECTlcopen.bank

Question - SELECT

2003-01-02 Thread Terence Ng
How do I correct this SQL code: SELECT lcopen.bank, SUM(lcopen.unit_price_us*lcopen.order_cbm) * 7.8 AS open, # SUM(lcreceive.amount_us) where lcreceive.due_date current_date AS receive, # # the above statement is not correct for the # additional condition # FROM lcopen, lcreceive AND

How to print the results to the printer in Windows2000 environment

2003-01-01 Thread Terence Ng
Hi! How can I print the results to the printer in Windows2000 environment? Is there any MySQL command for this purpose? How about the MySQL Control Center? I have tried to search for an answer, but mostly for the unix system. Is there any simple solution since I am not a programmer? Terence

load data local infile

2002-12-31 Thread Terence Ng
Hi, I have just upgraded to 3.23.54 How to input bulk data into table? I have tried: LOAD DATA LOCAL INFILE lcopen1.txt INTO TABLE lcopen; but it shows: ERROR 1148: The used command is not allowed with this MySQL version What did I miss? What method can I use to input bulk data? Terence Ng

load data local infile

2002-12-31 Thread Terence Ng
Hi, I have just upgraded to 3.23.54 How to input bulk data into table? I have tried: LOAD DATA LOCAL INFILE lcopen1.txt INTO TABLE lcopen; but it shows: ERROR 1148: The used command is not allowed with this MySQL version How come? What method can I use to input bulk data? Terence Ng

Sorting by abbr weekdays

2002-12-02 Thread Terence
Hi all, Is there a way to sort records based on a particular column, varchar(3), which contains days of the week, mon, tue, wed, thu, fri, sat, sun I need the order to be mon, tue, wed, thu etc. Select day_of_week from my_timetable order by day_of_week Gives fri mon sat sun thu tue wed Is is

Re: Strange problem with MySql IIS ASP

2002-10-22 Thread Terence
;DATABASE=mydb;UID=user;PWD=pwd;PORT=3 306;OPTION=16384; myConn.Open Hopefully this works. Cheers Terence Hi All! I've Select like this: SELECT ExpDepDate, ActArrDate FROM oceandata It works beautifully But When I modify it like this SELECT ExpDepDate, ActArrDate

unauthenticated user

2002-10-15 Thread Terence
sql,query I have noticed an entry in the processlist which reads UserHostDBCommandState unauthenticated userconnecting host[blank]connectlogin Can someone shed some light on this for me? Where is it coming from? Is it anything to be concerned about? Thanks

Re: resetting mysql server gently

2002-10-10 Thread Terence
Terence --- Uptime: 90471 Threads: 10 Questions: 3071980 Slow queries: 3 Opens: 1274 Flush tables: 1 Open tables: 64 Queries per second avg: 33.955 - Original Message - From: Bryce C [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 10, 2002 1:14 PM Subject

Re: Help with Sum(), newbie

2002-10-09 Thread Terence
well the result is correct. the sum of first is 1 for the first record. the sum of first AND second would be 3. select first, second, sum(first + second) from example; is that what you want? Rgds Terence - Original Message - From: Kevin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

Re: How to read table names within database?

2002-09-06 Thread Terence
show tables from database; - Original Message - From: Mark Worsdall [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 06, 2002 2:42 PM Subject: How to read table names within database? Hi, I notice that lots of mysql gui's all can find out the contents (tables) of any

Re: GRANT not working

2002-09-03 Thread Terence
I personally have never had a problem with Redhat. Andrew try this: grant all privileges on *.* to 'amp'@'%' identified by 'blah' (with grant option) ; let me know if it works. - Original Message - From: Matt Hargraves [EMAIL PROTECTED] To: Andrew Pierce [EMAIL PROTECTED]; [EMAIL

Re: JDBC - Access denied REVISED = simply won't accept passwords when logging in

2002-08-28 Thread Terence
did you flush privileges after setting the password? % stands for wildcard :) - Original Message - From: neal [EMAIL PROTECTED] To: mySQL [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 10:47 AM Subject: RE: JDBC - Access denied REVISED = simply won't accept passwords when logging in

Re: backup script

2002-08-27 Thread Terence
You need a combo of cron jobs (man crontab) and use either mysqldump or mysqlhotcopy. cron: * 3 * * * path_to_your_script script ./mysqldump --opt -A path_to_output_sql_file -u username this is just one of the many ways. - Original Message - From: Ilyas Keser [EMAIL PROTECTED] To:

Re: Error

2002-08-22 Thread Terence
The key words are over which I have no control. See if you can figure it. - Original Message - From: Andrew Conkling [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 22, 2002 12:36 PM Subject: Error Hey, I'm trying to create a db on a server (over which I have no

where clause structures

2002-08-19 Thread Terence
try this: selectwhere WHATEVER LIKE 'whatever%' notice the '%' at the end not the beginning...hope this is what you wanted... lekker dag verder boet. - Original Message - From: Chris Knipe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 18, 2002 5:54 AM Subject: Re:

Re: mysqladmin return

2002-08-14 Thread Terence
it means access denied. either cos you dont have permissions in your mysql privilege table or your password is wrong. did you supply a valid username and password in the command string? - Original Message - From: Dave Reinhardt [EMAIL PROTECTED] To: MySql Support [EMAIL PROTECTED] Sent:

Bash to remote MySql Server

2002-07-18 Thread Terence
) If not, what do I need to look into? perl? Thanks Terence - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail

Re: Connectiing mySQL db on Localhost to mySQL DB on Server

2002-07-10 Thread Terence
www.mysqlfront.de - Original Message - From: Thomas Edison Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 1:27 PM Subject: Connectiing mySQL db on Localhost to mySQL DB on Server Hi, I would like to export Table Data which is on my localhost mySQL Server,

Re: export table?

2002-07-08 Thread Terence
simplist way i know and use, is through mysqlfront www.mysqlfront.de - Original Message - From: Chip Wiegand [EMAIL PROTECTED] To: MySQL [EMAIL PROTECTED] Sent: Monday, July 08, 2002 1:11 PM Subject: export table? Where is info on exporting a table? I checked the mysql docs and the

Re: Insert with ASP into mysql

2002-07-02 Thread Terence
where's your execute line? oconn.execute (sqltext) all you're doing is putting the sql statement into a variable and nothing else. - Original Message - From: Defryn, Guy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 03, 2002 12:41 PM Subject: Insert with ASP into mysql

Re: Root pass

2002-07-02 Thread Terence
it's in the docs. use mysql; or update databasename.tablename ... - Original Message - From: Page Works Web Solutions [EMAIL PROTECTED] To: MySql mailing list (E-mail) [EMAIL PROTECTED] Sent: Wednesday, July 03, 2002 1:51 PM Subject: Root pass Hi, any ideas on this one [admin

Re: Access denied @locahost

2002-06-27 Thread Terence
have you run the grant command? this adds users SEPERATE from your unix user list. - Original Message - From: [EMAIL PROTECTED] To: MySQL List [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 2:39 PM Subject: Access denied @locahost I've been scowering (sp?) the docs but I can't get

MySqlDump

2002-06-12 Thread Terence
Dear list, ERROR 1031 at line 5167: Table handler for 'total' doesn't have this option I am trying to use mysqldump to backup my server to another. Can anyone tell me what the above error means? Is it a column name or perhaps some data that's conflicting? Rgds Terence - Original Message

Re: MySqlDump

2002-06-12 Thread Terence
merge/union...which i guess is the problem? is it not fully supported by mysqldump yet? - Original Message - From: Egor Egorov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 5:33 PM Subject: Re: MySqlDump Terence, Wednesday, June 12, 2002, 10:20:03 AM, you wrote

Re: ACCESS to MySQL

2002-06-12 Thread Terence
look for a program called DBTools, best in it's category for this kinda thing. - Original Message - From: Ahmed Farouk [EMAIL PROTECTED] To: César Aracena [EMAIL PROTECTED]; 'MySQL General' [EMAIL PROTECTED] Sent: Thursday, June 13, 2002 7:06 AM Subject: Re: ACCESS to MySQL just

  1   2   >