Date query problem (hard one)

2001-03-08 Thread Adams, Antoine A SSI-ISES-56
I've been strugling with a query for some time now and I can't get the desired answer from mysql. The desired answer: a date (bv. 2001-02-08) What is the input: a week number What date do I need: The date of the monday where week = x the idea was: select date(week(10),1); But offcourse

Re: Date query problem (hard one)

2001-03-08 Thread Peter Skipworth
Antione, What's your definition of a week number ? A week number in the range 1..52 is not in itself enough to calculate a precise date from.. regards, P On Thu, 8 Mar 2001, Adams, Antoine A SSI-ISES-56 wrote: I've been strugling with a query for some time now and I can't get the desired

How to pack keys

2001-03-08 Thread Jan Dvorak
Hi, I have a table that needs to be indexed heavily. Even though I specify the `pack_keys=1` table option and all the keys are combinations of unsigned integers of various sizes, I don't really get any key packing - read the full story below. Is there any other magic I should use to get my keys

Re: Problems building 3.23.33 on Solaris 2.6

2001-03-08 Thread Tibor Simko
On Wed, 7 Mar 2001, Steve Sizemore wrote: I'm trying to install the latest stable mysql on Solaris 2.6. [...] ld.so.1: ../sql/mysqld: fatal: libz.so: open failed: No such file or directory [...] /opt/local/lib/libz.so Apparently /opt/local/lib isn't in your LD_LIBRARY_PATH. Check it out via

subscription

2001-03-08 Thread LEVY jérémy
[EMAIL PROTECTED] - 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 [EMAIL PROTECTED] To unsubscribe,

TCP_NODELAY is not used when compilation

2001-03-08 Thread Kengo Nakajima
Description: netinet/ip.h and netinet/tcp.h are not included during compilation. This causes extremely slow remote access if the last data packet is smaller than MTU of underlying network layer, because TCP_NODELAY socket option is not set. How-To-Repeat: 1. Get 3.23.33 source code

TCP_NODELAY is not used when compilation

2001-03-08 Thread Kengo Nakajima
Description: netinet/ip.h and netinet/tcp.h are not included during compilation. This causes very slow remote access if the last data packet is smaller than MTU of underlying network layer, because TCP_NODELAY socket option is not set. How-To-Repeat: 1. Get 3.23.33 source code from mysql.com

Re: What is Errcode 2?

2001-03-08 Thread Jan Dvorak
Hi, The perror command gives MySQL error messages. [jenik@zarq jenik]$ perror 2 Error code 2: No such file or directory I'd guess you should specify the full path to the output file, and make sure the location is world-writable. /tmp should work on Unix systems. Jan Jennifer wrote:

Re: TCP_NODELAY is not used when compilation

2001-03-08 Thread Deependra B. Tandukar
Greetings! I am trying to compile MySQL in RedHat 6.0. what I did are: tar -xvzf mysql-3.23.33.tar.gz cd mysql-3.23.33 ./configure --prefix=/usr/local/mysql then it startx to work and inerrupt and says testing gcc working: no configure: error: installation or configure problem: c compiler can

wishlist: create_tmp_priv in mysql.db

2001-03-08 Thread Christian Hammers
Hello I like to propose the attribute create_tmp_priv as little alternative to create_priv. The reason is that due to the lack of sub-selects temporary tables which can be created with the same name at the same time by many connections are often very usefull. But I won't give every user the

SELECT only non-identical values

2001-03-08 Thread daszimmer
I would like to modify the following statement select Item from $table in such a way that it checks what kinds different items are in the database. Hence, only those values should be returned, which are not identical to each other. Example: Apple (5 occurances), Apple-Pie (3 occurances),

Re: SELECT only non-identical values

2001-03-08 Thread Jason Landry
select distinct item from $table It sounds like you might want to read up a little on normalization, however. I would like to modify the following statement select Item from $table in such a way that it checks what kinds different items are in the database. Hence, only those values should

Installation MySQL

2001-03-08 Thread Philippe GILLOT
Bonjour, je vous envoie en pièce jointe et zippé avec Winzip8.0,en format StarOffice5.2 .sdw, une description la plus précise possible du problème d'installation de MySQL que je rencontre actuellement.Si pour une raison ou une autre, l'envoi de ce mail pose problème, pouvez-vous me le

Re: wishlist: create_tmp_priv in mysql.db

2001-03-08 Thread Richard Ellerbrock
I have asked this before and was told that it is not going to happen soon. That was a LONG time ago. Maybe in 4.0? The only alternative now is to create a scratch database with enough rights and create your temp tables there. -- Richard Ellerbrock [EMAIL PROTECTED] Christian Hammers [EMAIL

Get date from week number?

2001-03-08 Thread Basil Hussain
Hello all, I'm not quite sure how to work this out. I have two columns in a table that hold a week number (i.e. 1, 9, 52, etc.) and a year value (i.e. 2000, 2001, etc.). I need to get a date value for the first day of each week and it's associated year. For example, given week 8 in the year

OLEDB

2001-03-08 Thread Bernhard Stettler
Hello, I'm looking for an OLEDB-driver for mySQL. I think it's a very important technology because a lot of software uses now OLEDB instead of ODBC. Does someone know of such a project? Greetings from Switzerland Bernie -- Ingenieur- und Vermessungsbro KAUTER + HUTZLI, Egliweg 6/8, CH - 2560

Re: ODBC Driver documentation request (again)

2001-03-08 Thread Pat Sherrill
ODBC API documentation is, of course, available from Microsoft and is included with Visual Studio or available from their website (I'm not sure of the exact URL). All of the MyODBC source is available from your closest MySQL Mirror site. ODBC and JDBC are not the same. Try Sun for JDBC

php libraries

2001-03-08 Thread James Makunike
Where do I get the php libraries as one file? James - 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

INTO OUTFILE 'filename' creates world writeable files

2001-03-08 Thread John . Warburton
Description: I have just installed mysql 3.23.33 on my system and was testing the mysqldump command as per the manual. I have not created any new databases. When I run mysqldump with the --tab option, the *.txt files created are world read/writable. This is

Dropped wrong DB. Can I recover?

2001-03-08 Thread lounge fly
Wow, did I ever screw up. I meant to drop an unused development database and ended up dropping a used production database. Can I recover it? If so, how? The server runs Linux. Signed, Screwed _ Get your FREE download of MSN

Dropped wrong DB. Can I recover?

2001-03-08 Thread lounge fly
Wow, did I ever screw up. I meant to drop an unused development database and ended up dropping a used production database. Can I recover it? If so, how? The server runs Linux. Signed, Screwed _ Get your FREE download of MSN

Re: Dropped wrong DB. Can I recover?

2001-03-08 Thread HOSTMASTER, Bitgeeks
Did you back up the database? If not... Ehmmm... Why did they even give you drop db access... - Original Message - From: "lounge fly" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 08, 2001 1:05 PM Subject: Dropped wrong DB. Can I recover? Wow, did I ever screw up.

python and mysql

2001-03-08 Thread Anand Patel
Hi I am using python to interact with mysql and have a small problem ahich I am hoping someone can help me with: Basically I am trying to input values into a table which I have created, the value is www.breakbeat.co.uk. The way I have done this is to assign the url to a variable: url1. and

Re: Dropped wrong DB. Can I recover?

2001-03-08 Thread Greg Cope
lounge fly wrote: Wow, did I ever screw up. I meant to drop an unused development database and ended up dropping a used production database. Can I recover it? If so, how? Go find a backup ;-0 If you've not got any then you can, but it may not work, restore / undelete files - their

Re: user denied by mysql_connect

2001-03-08 Thread Gerald L. Clark
Hui wrote: Hi, We have apache 1.3.19, PHP4.0.2 and mysql installed in our redhat linux 6.2 system. For some reasons, we got error message " denied for user: nobody@localhost (Password :YES)". Database in my local machine. Code: mysql_pconnect("$localhost","$username", "$password") or

Re: select DISTINCT() hang - but non corrupt table

2001-03-08 Thread Gerald L. Clark
Justin wrote: I have a puzzle.. Frequently, about, weekly? our data server gets into a state where select distinct(keyfield) from table hangs in the 'sending data' phase, or the 'sorting result' phase, the client is left waiting for the result, no rows are returned, no errors are in

Four part names

2001-03-08 Thread Andy Tripp
Hi, I am trying to create a bi-directional view to a MYSQL database using an existing MS SQL Server database. I have MySQL set-up as a linked server and am using MyODBC. I have no problems creating a read only view using the open query structure but wish to use the four part names format for

Re: RENAME CRASH MySQL

2001-03-08 Thread Sinisa Milivojevic
Jocelyn Bernier writes: Hi, I use MySQL version 3.23.33 on Windows NT 4.0 SP6. When I use the command ALTER TABLE ... RENAME TO ... most of the time my MySQL service stop. I need to restart it from the service control panel. I don't have any errors in the logs. When restarted, my

Re: help for mysql installation

2001-03-08 Thread Gerald L. Clark
liu hui wrote: hello; I meet a problem when I wont to install mysql3-23-33. after I run the command ./configure a error report to me the last several line are printed as followed: " checking whether stat file-mode macros are broken... no checking return type of signal handlers...

Newbie Select Problem URGENT

2001-03-08 Thread Ken Tuck
Hi All I am trying to compare information in 2 different tables and return matches. The problem is that this query only returns the listings where I want it to return a row from AutoEmail when it finds a match. What am I doing wrong? SELECT * FROM AutoEmail, listings WHERE

Re: C API

2001-03-08 Thread Sinisa Milivojevic
Mark Selby writes: Hi all, When having performed a query with a LIMIT, is there any way to get the total records that would have been retrieved without the LIMIT being used (other than building and executing a separate COUNT (*) query) ? Please CC to this email address as I'm

Re: Sending data, but no data sent?

2001-03-08 Thread Vishal Sharan
Can anyone tell me how to UNSUBSCRIBE from this LIST. Thanks a lot "Matthias Urlichs" [EMAIL PROTECTED] wrote: Hi, Sinisa Milivojevic: First of all, where have you got 3.23.34 when it is not out ?? It's the version in your current BitKeeper archive. Second what type of column is

reinstall mysql

2001-03-08 Thread Rashid Zolqarnain
Hello, I installed MySql serevr version 3.23.33 on Red Hat Linux 7.0. Sometimes when I reboot the system, MySql do not work. I have to uninstall and then reinstall MySql server. What could be the problem? Rashid -

sql_yacc on IBM S/390 Mainframe

2001-03-08 Thread John Nealy
I am trying to compile version 3.23.33 on Linux on an IBM S/390 mainframe. I the following entry to config.sub to get configure to recognize the machine type: # Added a CPU type for the S/390 so we could compile. J. Nealy 3/5/2001. s390-*) basic_machine=s390-ibm

buggy support for cp1257

2001-03-08 Thread Rimantas Liubertas
Hello mysql, (Note: this post contains characters in windows-1257 encoding, they may appear incorectly in your e-mail clients). I believed everything is OK with MySQL support for cp1257 charset until I actually tried to sort records alphabeticly. What I find out was: 1. Typo in cp1257.conf

UDF 'create function' error, or is it just me?

2001-03-08 Thread Geir Rastad
Hi! I've compiled the udf_example.cc file into an so, copied it to /usr/lib, but when i issue a CREATE FUNCTION lookup RETURN STRING SONAME "udf_example.so"; I get: Error 1041: Out of memory. I've searched the mailing list and the web, and all the information I get is that it seems to only

Re: wishlist: create_tmp_priv in mysql.db

2001-03-08 Thread Sinisa Milivojevic
Christian Hammers writes: Hello I like to propose the attribute create_tmp_priv as little alternative to create_priv. The reason is that due to the lack of sub-selects temporary tables which can be created with the same name at the same time by many connections are often very

Improving MySQL installation in ApacheToolbox - RFC

2001-03-08 Thread Greg Cope
Dear All I've been using apachetoolbox - a shell script that installs apache with the options of including lots of modules (php, mod_ssl, mod_perl etc ...). Its great for installing a custom apache (something I do all to often ;-). It offers a menu and will download / configure / complie any

Fwd: Quick question

2001-03-08 Thread Sunit Modi
If you can deal with the technical query below it would be much appreciated. Many Thanks Sunit - Original Message - From: Jonas Norrman [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Date: Thu, 8 Mar 2001 17:49:37 +0100 (CET) To: Sunit Modi [EMAIL PROTECTED] Cc: [EMAIL

INSERT DELAYED and auto_increment: NULL or 0?

2001-03-08 Thread Lance Lovette
I am confused about the way INSERT DELAYED reacts to setting an auto_increment field to NULL. I am inserting records into a table where one of the columns is auto_increment. Usually when setting the value of an auto_increment field in an INSERT query I pass a value of NULL. When I do the same

Re: reinstall mysql

2001-03-08 Thread Seung-woo Nam
Hi Have tried to start it manually instead of reinstalling it? Seung-woo Nam Rashid Zolqarnain wrote: Hello, I installed MySql serevr version 3.23.33 on Red Hat Linux 7.0. Sometimes when I reboot the system, MySql do not work. I have to uninstall and then reinstall MySql server.

Poddible SHOW DATABASE || TABLE bug in 3.23.33

2001-03-08 Thread greg
Description: SHOW DATABASE and SHOW TABLES and mysqlshow all return empty lists (i.e a nice list of blanks - no of blank lines equals number of databases / tables) How-To-Repeat: Do a mysqlshow or SHOW DATABASES under mysql Fix: Submitter-Id: submitter ID Originator:Greg Cope

Antwort: php libraries

2001-03-08 Thread alexander . skwar
On 08.03.2001 13:39:34 James Makunike wrote: Where do I get the php libraries as one file? What do you mean? http://www.php.net has the sources and binaries - Before posting, please check:

Re: C API

2001-03-08 Thread Larry Griffin
Mark I ran into a similar problem building a VB maintenance program for a database that resides on Linux. Many of my queries were too big for MyODBC to return. I ended up using the count function to find out how many records would be returned then allowing the user to fetch them in blocks via

DIGITECNIA.COM -SOLUCIONES WEB-

2001-03-08 Thread DIGITECNIA
DIGITECNIA.COM presenta su nuevo portafolio de Soluciones Internet: -Hosting -Desarrollo de Sitios Web -Diseo y Animacion Multimedia -Comercio Electronico -eMarketing Con Excelentes Precios, Servicio y Soporte que garantizan el exito de la presencia de su empresa en la red. Visitenos en:

Re: Installation MySQL

2001-03-08 Thread Yoann Chevalier
Bonjour, Tout d'abord, il s'agit d'une liste de diffusion anglaise, donc si tu veux que le plus de monde puisse t'aider, il vaut mieux faire la demande en anglais. Ensuite, il faut eviter d'envoyer des e-mail sous forme HTML, car pour certains utilisateurs (UNIX,Mac) ca devient illisible !! Et

Re: Poddible SHOW DATABASE || TABLE bug in 3.23.33

2001-03-08 Thread Greg Cope
[EMAIL PROTECTED] wrote: Whops ! This is the know bug, but I did mysqlbug on this machine a fwe weeks ago, and have only just sorted out the mailserver today - and did not notice this in the queue - appologies for wasting anyones time with this. As an aside has anyone got further than this

Re: sql_yacc on IBM S/390 Mainframe

2001-03-08 Thread Sinisa Milivojevic
John Nealy writes: I am trying to compile version 3.23.33 on Linux on an IBM S/390 mainframe. I the following entry to config.sub to get configure to recognize the machine type: # Added a CPU type for the S/390 so we could compile. J. Nealy 3/5/2001. s390-*)

Re: Installation MySQL

2001-03-08 Thread Sinisa Milivojevic
Yoann Chevalier writes: Bonjour, Tout d'abord, il s'agit d'une liste de diffusion anglaise, donc si tu veux que le plus de monde puisse t'aider, il vaut mieux faire la demande en anglais. Ensuite, il faut eviter d'envoyer des e-mail sous forme HTML, car pour certains utilisateurs

Re: Connect MySQL from Python

2001-03-08 Thread kentj
The following URL Points to the Python MySQl interface. Also Zope is a web applications server written in python which has the ability to connect to MySQL. http://dustman.net/andy/python/MySQLdb/ iq wrote: Dear Guys, Is there any API or modules to connect MySQL from Python?? -- Best

Oracle to mySQL

2001-03-08 Thread Jonathan R. Karlen
I am porting an application from Oracle to mySQL and I have this query which I need to port: select id, senderID, recipientFirstName, recipientLastName, recipientGender, occasion, month, day, sentDate from reminderclub where (sentDate is null or sentdate-sysdate30) and

Duplicate Entry in Key 1

2001-03-08 Thread Tobias Wolff
Hello, I have searched the mailing list for this topic, but didn't find a match vor my problem. I am working on Linux Mandrake with MySQL 3.23.33 installed from the RPMs for Mandrake. I am trying to convert a ACCESS database to MySQL using a perl script. The script makes connections to the

BLOB

2001-03-08 Thread Hesham Anan
Hi What is the best way to download and upload BLOB object to MySQL database using Java, JDBC I tried using load_file in an INSERT query but it did not work Also I would like to know how to read the BLOB objects from the database

optimising joins: where vs. using/on

2001-03-08 Thread Christian Hammers
Hello list While browsing old sources by a former employee I realised that he always did comma seperated joins and then a "where" FROM tablea a, tableb b, tablec c WHERE a.id=b.id and b.nr=c.nr whereas I learned to do FROM tablea a

Converting a FreeBSD UNIX Mysql Database

2001-03-08 Thread Tom Flanagan
Does anyone know how to convert a FreeBSD UNIX MYSql database to Windows NT/2000 MYSql Database? Thanks, Tom Flanagan - Before posting, please check: http://www.mysql.com/manual.php (the manual)

Re: optimising joins: where vs. using/on

2001-03-08 Thread Steve Ruby
Christian Hammers wrote: Hello list While browsing old sources by a former employee I realised that he always did comma seperated joins and then a "where" FROM tablea a, tableb b, tablec c WHERE a.id=b.id and b.nr=c.nr whereas I learned to do

Re: Converting a FreeBSD UNIX Mysql Database

2001-03-08 Thread Dan Nelson
In the last episode (Mar 08), Tom Flanagan said: Does anyone know how to convert a FreeBSD UNIX MYSql database to Windows NT/2000 MYSql Database? Just copy the files over to the new machine. No conversion necessary. -- Dan Nelson [EMAIL PROTECTED]

Re: optimising joins: where vs. using/on

2001-03-08 Thread Steve Ruby
Steve Ruby wrote: Christian Hammers wrote: Hello list While browsing old sources by a former employee I realised that he always did comma seperated joins and then a "where" FROM tablea a, tableb b, tablec c WHERE a.id=b.id and b.nr=c.nr

Re: Duplicate Entry in Key 1

2001-03-08 Thread David Brieck
If you are using MS Access, the easiest way is to export the tables via the ODBC driver. Simply right click on your table name, then click export. At the bottom of the list there the ODBC option. I haven't had any problems using this method of transferring tables, other than the fact that

Re: optimising joins: where vs. using/on

2001-03-08 Thread Christian Hammers
On Thu, Mar 08, 2001 at 10:29:20AM -0700, Steve Ruby wrote: He is doing an inner join, you are doing a left join, they (potentialy) do not produce the same results. Hmm have to think about it... inner means fields where the right table has a NULL value in the condition are left out, right? If

Re: Converting a FreeBSD UNIX Mysql Database

2001-03-08 Thread Steve Ruby
Tom Flanagan wrote: Does anyone know how to convert a FreeBSD UNIX MYSql database to Windows NT/2000 MYSql Database? Thanks, Tom Flanagan If you are using MyISAM tables (3.23.x) you can simply copy them from one computer to the other. If you are using ISAM tables like in 3.22 you

Re: Duplicate Entry in Key 1

2001-03-08 Thread Gerald L. Clark
Tobias Wolff wrote: Hello, I have searched the mailing list for this topic, but didn't find a match vor my problem. I am working on Linux Mandrake with MySQL 3.23.33 installed from the RPMs for Mandrake. I am trying to convert a ACCESS database to MySQL using a perl script. The script

Re: optimising joins: where vs. using/on

2001-03-08 Thread Steve Ruby
Christian Hammers wrote: On Thu, Mar 08, 2001 at 10:29:20AM -0700, Steve Ruby wrote: He is doing an inner join, you are doing a left join, they (potentialy) do not produce the same results. Hmm have to think about it... inner means fields where the right table has a NULL value in the

Re: optimising joins: where vs. using/on

2001-03-08 Thread Steve Ruby
Christian Hammers wrote: On Thu, Mar 08, 2001 at 10:29:20AM -0700, Steve Ruby wrote: He is doing an inner join, you are doing a left join, they (potentialy) do not produce the same results. Hmm have to think about it... inner means fields where the right table has a NULL value in the

MySQL Failover solutions?

2001-03-08 Thread Bryan Coon
Hi, We are implementing a linux cluster, and rather than get gouged by oracle (in performance and licensing) would much rather use MySQL. I searched through the archives and found several references to failover and replication but still have some questions. If I understand correctly,

Optimizing JOINS -- related matter

2001-03-08 Thread Oson, Chris M.
Hello, On a related matter, do the various JOIN's (LEFT, INNER, and OUTER) use a temp file when processing? Table pollResponses: +-+---+--+-+-++ | Field | Type | Null | Key | Default | Extra |

MySQL and Z39-50

2001-03-08 Thread Melanie Dutkiewicz
Can anyone recommend a Z39-50 Server to use with MySQL? thanks Melanie Dutkiewicz -- Melanie Dutkiewicz, PhD.Tel: (604) 278-3411x2520 MacDonald Dettwiler direct line: (604) 231-2520 13800 Commerce

MySQL proxy

2001-03-08 Thread Daniel a
Hi I follow this list for long time. This is first time I have to ask the question. I'm developing something like proxy for mysql. Everything works fine except when mysql client working with mysql over proxy is reciving bigger amount of data. For example big resultset. Let me explain situation.

INSERT delayed and concurrent inserts

2001-03-08 Thread Steven Roussey
Hi! Does MySQL's insert delayed handler insert concurrently with selects on MyISAM tables like the non-delayed inserts? Sincerely, Steven Roussey Network54.com http://network54.com/?pp=e - Before posting, please check:

More on: mysqld got signal 11

2001-03-08 Thread Steven Roussey
Hi! I have received several emails from people that choose not to (or can not) post to the list about mysql segfaulting. At the moment, I have the segfaults stopped by doing all of the below, I don't know (yet) which are to blame or in what combination: 1) Eliminate insert delayed (not really

Bug in MyODBC 2.50.36-nt ??

2001-03-08 Thread Uwe Hein
Hi everybody, I am using a MySQL Database with MyOdbc 2.50.36-nt under WinNt SP6a and Win 2000 SP 1. The language of my frontend is CA Visual Objects (ClassMate library for SQL) When skipping through my data set with nRetCode =

mysql_install_db problem

2001-03-08 Thread Titus Purdin
I am installing mysql-3.23.33-dec-osf5.1-alphaev6 on a DEC Alphastation running True64 Unix version 5.0A. Logged in as root, when I run scripts/mysql_install_db as part of the installation, it runs as far as % scripts/mysql_install_db Preparing db table Preparing host

Re: MySQL proxy

2001-03-08 Thread Daniel a
Hi Right now I'm happy. Sorry for spam. I had an error in mys socket coke. By P.S. Proxy works well and gives many possibilities. Daniel a wrote: Hi I follow this list for long time. This is first time I have to ask the question. I'm developing something like proxy for mysql.

Re: Problem

2001-03-08 Thread Cody Caughlan
As noted on the mysql website, you need to use the gnu version of zip (gtar-sparc)if you are on solaris, as you are /Cody Caughlan ALICE CHIAPPETTA wrote: I have downloaded the stable release for Solaris. Everytime I try to gunzip and tar it. Everything works till the end then I get

how do you select by date?

2001-03-08 Thread Ed Lazor
Hi =) Could you help? I have a table with a datetime field and I'm trying to figure out how to format an SQL query to select records only from within the current month. Any help would be greatly appreciated. Thanks, -Ed

Re: mysql_install_db problem

2001-03-08 Thread Gerald L. Clark
scripts/mysl_install_db --user=mysql Now that you have files and directories created under the wrong user, you can chown -R mysql /usr/local/mysql/var or whatever the data directory is on your system. Titus Purdin wrote: I am installing mysql-3.23.33-dec-osf5.1-alphaev6 on a DEC

Sum of a CASE Expression

2001-03-08 Thread Phil Daintree
I can't see how CASE works ?? Manual is fairly breif on the subject. The SQL below has some kind of snag. Is this getting too hairy to use CASE within a sum expression ?? Any thoughts or comments would be appreciated. SELECT Sum(DebtorTrans.OvAmount + DebtorTrans.OvGST +

Re: how do you select by date?

2001-03-08 Thread Siim Einfeldt aka Itpunk
.WHERE monthcol=MONTH(now()). I think this should work. Hi =) Could you help? I have a table with a datetime field and I'm trying to figure out how to format an SQL query to select records only from within the current month. Any help would be greatly appreciated. Thanks, -Ed

newbie mysqldump problem

2001-03-08 Thread Doug Poland
Hi, I'm having a dickens of a time getting mysqldump to work. No matter what I enter, mysqldump says... /usr/local/mysql/bin/mysqldump: option `--databases' doesn't allow an argument I've perused the list archives and looked at the manual. It should work but doesn't. What am I doing

Upgrade with unexpected results

2001-03-08 Thread James Blackwell
Can anyone shed a little light on this for me? I've got a mysql installation that has been running for over 2 years now. As the database has grown to over 250Meg (not TOO large at all) things have kind of slowed down. We're running this on a RH box with mysql v3.23.32. So, we bought a new

Re: newbie mysqldump problem

2001-03-08 Thread Gerald L. Clark
mysqldump --databases db1 db2 db3 ... Note, these are complete databases, NOT tables. to try it do: mysqldump --databases mysql Doug Poland wrote: Hi, I'm having a dickens of a time getting mysqldump to work. No matter what I enter, mysqldump says...

Re: how do you select by date?

2001-03-08 Thread Ed Lazor
Thanks to everyone who helped so quickly =) Based on what people said, I was able to come up with a solution. The goal was to get a total number of log entries from a given month and year. The query we came up with is: select count(*) as Total from log where month(datestamp) =

Re: newbie mysqldump problem

2001-03-08 Thread Gerald L. Clark
Well, I am running 3.23.33, and it works for me. Doug Poland wrote: On Thu, Mar 08, 2001 at 03:03:43PM -0600, Gerald L. Clark wrote: mysqldump --databases db1 db2 db3 ... Note, these are complete databases, NOT tables. to try it do: mysqldump --databases mysql I've tried

problems with tutorial

2001-03-08 Thread David Phoon
folks, I need help. I installed mysql on NT, everthing seems fine. I wanted to insert fields into a table, as described in the tutorial from a file. It said the default that delimits a field is a tab, so I added fields delimited by tabs. (i used microsoft edit to create the file). i have also

Re: newbie mysqldump problem

2001-03-08 Thread Doug Poland
On Thu, Mar 08, 2001 at 03:33:54PM -0600, Gerald L. Clark wrote: Well, I am running 3.23.33, and it works for me. I'm working via ssh on an ISP's host. I wonder if there are permissions that have to be set in order to run mysqldump. Out of curiosity, I tried it on another ISP running MySQL

Does FULL TEXT speed up LIKE matches also ?

2001-03-08 Thread S A
I find the fuzzy matches from MATCH and AGAINST to be too unpredictable. Does using a FULL TEXT index also speed up simple LIKE searches ? - Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.

Cold Fusion

2001-03-08 Thread Andrew Staples
New to list, and to mySQL. If there are archives available, please let me know--I'll search them. I have a client who is building a new win2k server, and wants to use ColdFusion to connect to a mySQL db, instead of MS SQL7.0. Docs show it will work with myODBC, but gives examples for Unix. 1.

RE: problems with tutorial

2001-03-08 Thread Cal Evans
Need more info. Which tutorial? Are you trying to insert data into a table or put new fields into an existing table? Cal http://www.calevans.com -Original Message- From: David Phoon [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 3:44 PM To: [EMAIL PROTECTED] Subject:

Re: problems with tutorial

2001-03-08 Thread Rimantas Liubertas
Hello David, Thursday, March 08, 2001, 11:44:21 PM, you wrote: DP folks, DP I need help. I installed mysql on NT, everthing seems fine. I wanted to insert fields into a table, as described in the tutorial from a file. It said the default that delimits a field is a tab, DP so I added fields

Purging databases

2001-03-08 Thread Gorantla, Aruna
What is the process to purge databases in mysql? Thanks in advance, Aruna. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To

Re: Cold Fusion

2001-03-08 Thread Steve Ruby
Andrew Staples wrote: New to list, and to mySQL. If there are archives available, please let me know--I'll search them. I have a client who is building a new win2k server, and wants to use ColdFusion to connect to a mySQL db, instead of MS SQL7.0. Docs show it will work with myODBC,

Re: Cold Fusion

2001-03-08 Thread Dennis Salguero
1. Can CF work with mySQL via myODBC on win2k? Of course. That's the beauty of ODBC, as long as your language can call an ODBC connection (which CF can of course) you can use it. 2. Is there a better way to use CF and mySQL? With what goal in mind? If you're worried about the overhead that

Re: key lengths

2001-03-08 Thread David Robinson (AU)
I have a similar problem indexing a TEXT field. I am trying to create a unique index on the first 1024 characters of a TEXT field: * mysql * Welcome to the MySQL monitor. Commands end with ; or \g. * Your MySQL connection id is 66 to server version:

RE: More on: mysqld got signal 11

2001-03-08 Thread Steven Roussey
Damn! It took longer, but crashed again. The stack trace has been the same as the last three crashes: # resolve_stack_dump -s /tmp/mysqld.sym -n mysqld.stack 0x40097532 __evoke_link_warning_llseek + 937652786 0x80b3360

Removing duplicates from a table

2001-03-08 Thread Scott Wang
Hi guys, I set up a table that I'll be using for a mailing list. Two fields: id and addr. The id is a unique primary key that is used to "identify" (?) the email address in the addr field. How can I remove duplicate addresses in the addr field? I know of the select distinct addr from

Updated mysqldumpslow command

2001-03-08 Thread Tim Bunce
Attached is an updated version of the mysqldumpslow command that's supplied in the mysql distribution. The mysqldumpslow, for those who've not tried it, makes it very easy to summarize and analyze the contents of the 'slow query log'. This update was prompted by the need to support the newer

Re: Removing duplicates from a table

2001-03-08 Thread Geoff Coffey
on 3/8/01 3:40 PM, Scott Wang at [EMAIL PROTECTED] wrote: select distinct addr from tablename outfile filename.txt But how can I write the data to another table or even replace the information in the table with the output info? insert into another table (addr) select distinct addr from

got it installed, but can't run daemon

2001-03-08 Thread Jerry Davis
On system: SuSE 7.1 Professional MySql version: Ver 3.23.32 for pc-linux-gnu on i686 have also run the mysql_install_db, which says that all files have been installed. when running safe_mysql 1) mysqld errors out 2) I get the following in linux.err Jerry

Re: Cold Fusion

2001-03-08 Thread Miguel Angel Solórzano
At 13:53 08/03/2001 -0800, Andrew Staples wrote: Hi! I did a CF tag for Coldfusion to build and remove DSN files for MyODBC. The dll is called mydsn.dll and you find it at our contribution page and you can get the source code for VC++ too. Regards, Miguel New to list, and to mySQL. If there are

Re: Optimizing JOINS -- related matter

2001-03-08 Thread Jan Dvorak
Hi, I'd try to `optimize' the tables in the first place. Have you tried to select and group by PR1.pollResponsesID instead of PR2.pollResponsesID? As they are the equal, the result should be the same, but the query might get optimized better. Hope this helps, Jan "Oson, Chris M." wrote:

  1   2   >