Problem with querie

2006-05-31 Thread culikr
Dear friends Im having some problems with this queries on mysql 4.1.15 "SELECT * FROM scg00_scga2800_dbf WHERE taxdvig >= '20050302' OR (taxdvig = (SELECT max(taxdvig) FROM scg00_scga2800_dbf WHERE taxdvig < '20050302') AND (SELECT count(taxdvig) FROM scg00_scga2800_dbf WHERE taxdvig = '20050302'

Re: MySql Limitations??

2006-05-31 Thread Mathieu Bruneau
Harish TM a écrit : > hi... > I need to store something like a couple of million rows is a MySql > table. Is that ok or do I have to split them up. I intend to index each of > the columns that I will need to access so as to speed up access. Insertion > will be done only when there is very lit

Re: [PHP] corrupt pdfs

2006-05-31 Thread John Meyer
tedd wrote: Yes, I was wondering that myself considering the onslaught of "no-no's" one gets by suggesting placing images into a dB. A PDf file is really not that much different and probably better served via file system. tedd On the other hand, you get control of the images, as opposed to r

Re: name 'Szczech' returns more rows then 'Szczec%'

2006-05-31 Thread Brendan Bouffler
I would try dumping it using 'mysqldump -c' and inspecting the insert statements ... seems awefully suspicious to me. I'm thinking you might have a line feed character (or some other invisible) in there somewhere... boof -- brendan bouffler Architect, HPC & New Technology APJ ESS Competency La

Re: name 'Szczech' returns more rows then 'Szczec%'

2006-05-31 Thread Jake Peavy
On 5/31/06, Lukasz Budnik <[EMAIL PROTECTED]> wrote: I'm losing my mind - no idea what's going on with this name. Any hints most welcome ;) Show your show create table? -- -jp Chuck Norris does not teabag the ladies. He potato-sacks them.

Re: question+comment : Re: set "DEC" as a column name : forbidden

2006-05-31 Thread Jeremy Cole
Hi Gilles, I search in the manual with "ERROR 1064", and then get the page : http://dev.mysql.com/doc/refman/4.1/en/error-messages-server.html Error: 1064 SQLSTATE: 42000 (ER_PARSE_ERROR) Message: %s near '%s' at line %d I cannot figure out what is wrong from this info, whereas error code 106

SELECT ALL and flag

2006-05-31 Thread Peter Lauri
Hi, I have a table table_a and table_b: table_a { id name } table_b { table_a_id b_value } Table A is a table with names, and table B is a table with values for a specific name (optional, therefore a specific table). I would like to select all records in A, done by: SELECT name FROM table_a;

Re: name 'Szczech' returns more rows then 'Szczec%'

2006-05-31 Thread Lukasz Budnik
Hi Sheeri, On Wed, May 31, 2006 18:11, sheeri kritzer wrote: > Did you try the first query again? Is it possible that another > "Szczech" was added in the time you did both queries? What happens > when you the simple > > mysql> select id_c, name, from clients where name like 'Szczec%'; and > mys

Re: Take my name off your list !!

2006-05-31 Thread Daniel McQuay
pfffttt... laziness! On 5/31/06, Daniel da Veiga <[EMAIL PROTECTED]> wrote: On 5/31/06, Michael Price <[EMAIL PROTECTED]> wrote: > > > > > > > > > Congratulations Michael! You just got yourself an indexed, searchable record of ignorance (Gmane, MySQL.com, etc) and laziness, by shouting at a lo

Re: question+comment : Re: set "DEC" as a column name : forbidden

2006-05-31 Thread Gilles MISSONNIER
Hello again Paul, 1-Why the error code (1064) can't lead explicitly to the syntax problem ? I'm sorry, I don't understand the question. The mysql command returned the error code [ ERROR 1064 (42000) ] I search in the manual with "ERROR 1064", and then get the page : http://dev.mysql.com/do

MySQL 5.0.22 has been released

2006-05-31 Thread Joerg Bruehe
Hi, MySQL 5.0.22, a new version of the popular Open Source Database Management System, has been released. The Community Edition is now available in source and binary form for a number of platforms from our download pages at http://dev.mysql.com/downloads/ and mirror sites. Note that not a

Re: where more than 2 column not in a table

2006-05-31 Thread Peter Brawley
[EMAIL PROTECTED] wrote: >I want to select a list, where it was registered in tbl club_get_match with Id- >Member in tbl detail_club_member, but it's not registered in tbl wager. Your schema has a problem: wagers.name_club is too short. If no club_get_match.name_club value is longer than 20 c

MySQL 4.1.20 has been released

2006-05-31 Thread Joerg Bruehe
Hi, MySQL 4.1.20, a new version of the popular Open Source Database Management System, has been released. The Community Edition is now available in source and binary form for a number of platforms from our download pages at http://dev.mysql.com/downloads/ and mirror sites. Note that not a

Re: please help optimize this query

2006-05-31 Thread DreamWerx
I'd start by looking at your schema.. Quite a lot of use of varchars... I'd suggest using chars (takes more space but processes faster).. Or even better, normalize the data so that you have a table for symbols that is linked to this table via an integer based foreign key. Also it seems wierd fo

Re: Need help querying a database of polynomials

2006-05-31 Thread Pooly
2006/5/31, Peter Brawley <[EMAIL PROTECTED]>: Lew, >If I have another polynomial, say the sum of terms 1,3,4, and 5, how can I quickly search this >database to see if it's already been stored? SELECT DISTINCT polynomial_id FROM polynomial p1 INNER JOIN polynomial p2 ON p1.term_id=1 AND p2.ter

please help optimize this query

2006-05-31 Thread Joseph Alotta
Greetings, I generate this report of all the holdings by symbol, summing up over accounts. It is taking much too long. I was wondering if I can add an index on something to make it more efficient. The first query gets the most recent date, the next query sums it up by symbol. Thank you

Re: Problem in using LOAD DATA LOCAL INFILE

2006-05-31 Thread Harish TM
You need to check your syntax. You probably don't have FIELDS TERMINATED BY and [OPTIONALLY] ENCLOSED BY and ESCAPED BY set correctly. True... those options are there for both LOAD DATA LOCAL INFILE and mysqlimport example: mysqlimport -u -p --local --fields-terminated-by='|' one thing here

Re: report of last transaction?

2006-05-31 Thread sheeri kritzer
Yes and no. The binary log is a long list of all changes to the system, so if that's enabled you can get what was done. My binary log (on 4.1.19) shows the query thread, but not the user/host that did the change. So it might be difficult to implement an "undo". Also, "delete from table1" does

Re: name 'Szczech' returns more rows then 'Szczec%'

2006-05-31 Thread sheeri kritzer
Did you try the first query again? Is it possible that another "Szczech" was added in the time you did both queries? What happens when you the simple mysql> select id_c, name, from clients where name like 'Szczec%'; and mysql> select id_c, name, from clients where name like 'Szczech'; and most

Re: Problem in using LOAD DATA LOCAL INFILE

2006-05-31 Thread sheeri kritzer
You need to check your syntax. You probably don't have FIELDS TERMINATED BY and [OPTIONALLY] ENCLOSED BY and ESCAPED BY set correctly. http://dev.mysql.com/doc/refman/5.0/en/load-data.html -Sheeri On 5/31/06, Neeraj <[EMAIL PROTECTED]> wrote: Hi harish Thanks for reply By executing this quer

Re: question+comment : Re: set "DEC" as a column name : forbidden

2006-05-31 Thread Paul DuBois
At 17:38 +0200 5/31/06, Gilles MISSONNIER wrote: Thank you Paul DuBois. I have 2 questions for you : 1-Why the error code (1064) can't lead explicitly to the syntax problem ? I'm sorry, I don't understand the question. 2-Could you tell me how I could go directly to the relevant page ?

question+comment : Re: set "DEC" as a column name : forbidden

2006-05-31 Thread Gilles MISSONNIER
Thank you Paul DuBois. I have 2 questions for you : 1-Why the error code (1064) can't lead explicitly to the syntax problem ? 2-Could you tell me how I could go directly to the relevant page ? [ Hard for you to feel like a lambda user in MySQL ] my comment : The "Search the MySQL manual"

MySQL Connector/J 3.1.13 Has Been Released

2006-05-31 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, MySQL Connector/J 3.1.13, a new version of the Type-IV all-Java JDBC driver for MySQL has been released. Version 3.1.13 is a bugfix release for the stable branch that is suitable for use with any MySQL version including MySQL-4.1, MySQL-5.0 or My

Re: Need help querying a database of polynomials

2006-05-31 Thread Peter Brawley
Lew, >If I have another polynomial, say the sum of terms 1,3,4, and 5, how can I quickly search this >database to see if it's already been stored? SELECT DISTINCT polynomial_id FROM polynomial p1 INNER JOIN polynomial p2 ON p1.term_id=1 AND p2.term_id=3 INNER JOIN polynomial p3 ON p2.term_id=3

Re: Take my name off your list !!

2006-05-31 Thread Daniel da Veiga
On 5/31/06, Michael Price <[EMAIL PROTECTED]> wrote: Congratulations Michael! You just got yourself an indexed, searchable record of ignorance (Gmane, MySQL.com, etc) and laziness, by shouting at a lot of people to revert something you have started (or let someone else start by using y

Re: MySql GUI

2006-05-31 Thread Anthony
Chris Sansom wrote: OK, so I suggested phpMyAdmin. Dan Trainor said: I highly suggest staying away from PHPMyAdmin. and, even more helpfully, 'Anthony' wrote: :-\ Fine - from this I gather phpMyAdmin is perhaps

Re: How to find out about SSL connection?

2006-05-31 Thread Yves Goergen
On 31.05.2006 14:46 (+0100), Paul DuBois wrote: > --ssl on the client side (mysql) isn't sufficient to enable an SSL > connection, as stated in the manual. That's why Joerg indicated the > use of the other options. Why do I need to provide the client with a certificate? I don't have one and I al

Re: MySql GUI

2006-05-31 Thread John Meyer
Chris Sansom wrote: At 19:44 +1000 31/5/06, Logan, David (SST - Adelaide) wrote: I would agree, I have found it useful as well. It does have a few limitations (well the versions I've used) BTW, what are the limits on OpenOffice's Base being used as a front end? -- MySQL General Mailing List F

RE: Take my name off your list !!

2006-05-31 Thread Logan, David (SST - Adelaide)
Hi Michael, Have you tried the link at the bottom of every email? If not then have you looked here? http://lists.mysql.com/faq.php Shouting at everybody who chooses to subscribe (which you have at some stage) doesn't help Regards --

Re: How to find out about SSL connection?

2006-05-31 Thread Yves Goergen
On 31.05.2006 12:47 (+0100), Joerg Bruehe wrote: > I said I am no SSL expert, I just go by this quote from the manual: Yes, I saw that. But it doesn't apply on Query Browser because there is no such option available in the UI. Btw, I cannot connect to MySQL5+SSL with Query Browser/Win but I can c

Take my name off your list !!

2006-05-31 Thread Michael Price
Original Message Follows From: "Neeraj" <[EMAIL PROTECTED]> To: "'Harish TM'" <[EMAIL PROTECTED]>,"'sheeri kritzer'" <[EMAIL PROTECTED]> CC: Subject: RE: Problem in using LOAD DATA LOCAL INFILE Date: Wed, 31 May 2006 17:20:39 +0530 Hi harish Thanks for reply By executing this

RE: Problem in using LOAD DATA LOCAL INFILE

2006-05-31 Thread Neeraj
Hi harish Thanks for reply By executing this query for this table I am not getting any error.. But I am getting wrong result. I have tried many combinations for LOAD DATA LOCAL INFILE but I am getting the results in two ways... 1. all the data getting loaded in first columns of first row. Or 2. da

Need help querying a database of polynomials

2006-05-31 Thread Lew E. Lefton
Hi, I hope this is an appropriate place to ask this question, if you think it is better suited for another list/forum, please let me know. I have a table that looks like this: mysql> select polynomial_id, term_id from polynomial; +---+-+ | polynomial_id | term_id | +-

Re: How to find out about SSL connection?

2006-05-31 Thread Joerg Bruehe
Hi Yves, all! Yves Goergen wrote: On 31.05.2006 10:21 (+0100), Joerg Bruehe wrote: According to your description below, where you got "Could not connect ...", you are given this warning if establishing the connection fails. So the remaining case is a client trying to connect to a server which

RE: MySql GUI

2006-05-31 Thread Chris Sansom
At 19:44 +1000 31/5/06, Logan, David (SST - Adelaide) wrote: I would agree, I have found it useful as well. It does have a few limitations (well the versions I've used) Actually, having just mildly sung its praises, there do seem to be some bugs in the latest version I installed on my local ma

RE: MySql GUI

2006-05-31 Thread Logan, David (SST - Adelaide)
Hi Chris, I would agree, I have found it useful as well. It does have a few limitations (well the versions I've used) but once it is up and running, it works fine. eg. It doesn't help with replication, amongst a few others. I use it internally within an intranet so there isn't much of a security

Re: MySql GUI

2006-05-31 Thread Chris Sansom
OK, so I suggested phpMyAdmin. Dan Trainor said: I highly suggest staying away from PHPMyAdmin. and, even more helpfully, 'Anthony' wrote: :-\ Fine - from this I gather phpMyAdmin is perhaps not a Good Thing. Now, giv

name 'Szczech' returns more rows then 'Szczec%'

2006-05-31 Thread Lukasz Budnik
Hi All, I'm using 5.0.21 on Gentoo. I've got very strange problem. I have clients table with id_c and name columns. I'm running simple selects: mysql> select id_c, name, concat('#',name, '@'), length(name) from clients where name like 'Szczec%'; +---+--+---+

Re: How to find out about SSL connection?

2006-05-31 Thread Yves Goergen
On 31.05.2006 10:21 (+0100), Joerg Bruehe wrote: > According to your description below, where you got "Could not connect > ...", you are given this warning if establishing the connection fails. > So the remaining case is a client trying to connect to a server which > does not support SSL, or does

Re: How to find out about SSL connection?

2006-05-31 Thread Joerg Bruehe
Hi Yves, all! Yves Goergen wrote: On 30.05.2006 16:28 (+0100), Joerg Bruehe wrote: To find out whether your server(s) support(s) or not, you need to check the corresponding variables. All this is described in the manual, section "5.9.7. Using Secure Connections": I still think that the clie