Re: InnoDB foreign keys bug

2003-02-09 Thread mysql-list-bot
"Scott Wong" <[EMAIL PROTECTED]>, Do you think the following links may help? * http://www.mysql.com/doc/en/example-Foreign_keys.html * http://www.mysql.com/doc/en/ANSI_diff_Foreign_Keys.html * http://www.mysql.com/doc/en/ALTER_TABLE.html * http://www.mysql.com/doc/

sort problem

2003-02-09 Thread Nicolas JOURDEN
Hi, How can I fix an order by using numbers and letters ? Id Town 56 Paris 1 60 Paris 10 7 Paris 11 262 Paris 12 8 Paris 13 16 Paris 14 22 Paris 15 6 Paris 3 57 Paris 4 51 Paris 6 5 Paris 7 61 Paris 8 59 Paris 9 I'd like to get : 56 Paris 1 6 Paris 3 57 Paris 4 51 Paris 6 5 Paris 7 61 Paris 8 5

re: Sorting with null values

2003-02-09 Thread Victoria Reznichenko
On Thursday 06 February 2003 17:05, Octavian Rasnita wrote: > Please tell me how can I sort a column and force placing the null values to > the end of list? Something like: SELECT ... ORDER BY IF(column_name IS NULL, 1, 0), column_name; -- For technical support contracts, goto https://order.m

Re: converting MS SQL to MySQL

2003-02-09 Thread Veysel Harun Sahin
Take look at http://www.mysql.com/doc/en/CREATE_TABLE.html [EMAIL PROTECTED] wrote: Hi, I am new to SQL. I am attempting to create a database that was created in MS SQL to MySQL. The below SQL statements works with MS SQL. I am executing the following: CREATE TABLE 'Accounting'(

Re: converting MS SQL to MySQL

2003-02-09 Thread mysql-list-bot
Hawk <[EMAIL PROTECTED]>, Do you think the following links may help? * http://www.mysql.com/doc/en/Using_mSQL_tools.html * http://www.mysql.com/doc/en/Using_InnoDB_tables.html This was an automated response to your email 'converting MS SQL to MySQL'. Final search keyword used to

Re: Problem with LEFT JOIN

2003-02-09 Thread Bill Easton
Lisi, First, limiting the clicks: You didn't have any condition on click.date in your suggested queries. You need to have one. Here's my suggestion, somewhat modified. Note that the limit on click.date goes in the ON clause, while the limit on display.date goes in the WHERE clause. Looks wier

Re: CREATE TABLE, NOT NULL fields, and empty strings

2003-02-09 Thread Stefan Hinz
Doug, > create table t1 ( id varchar(5) not null, name varchar(5) not null ); > insert into t1 ( id ) values ( "1234" ); > select count(*) from t1 where name = "";--> Result = 1 > 1) Why did the insert succeed since the "name" field is not null and I didn't >provide a value? > 2)

Re: support question (win98_se)

2003-02-09 Thread Stefan Hinz
Dino, > to double click or run mysql.exe from the MS dos prompt. I get the > following message. > C:\mysql\bin>>mysql > ERROR 2003: Can't connect to Mysql server on 'localhost' (10061) Most probably your MySQL server isn't running. Using Windows Explorer or a DOS window, cd to c:\mysql\bi

Re: A query construction problem

2003-02-09 Thread mysql-list-bot
Blaster <[EMAIL PROTECTED]>, Do you think the following links may help? * http://www.mysql.com/doc/en/InnoDB_Next-key_locking.html * http://www.mysql.com/doc/en/Query_log.html * http://www.mysql.com/doc/en/Query_results.html * http://www.mysql.com/doc/en/Query_Cach

Merge table limit

2003-02-09 Thread Jerry
Hello all. Does any one know, or can anyone point me in the direction of the limits of a number of tables I can put in a union of a merge table, I can figure out what the sql would be. I have daily tables for an application that average about 2500 rows (2.5 million) , I want to make a merge t

Re: AW: apostrophe and comma error on submit (auto)

2003-02-09 Thread mysql-list
Hi "Rusch (ext) Reiner" <[EMAIL PROTECTED]>, I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/Error_log.html * http://www.mysql.com/doc/en/Too_many_connections.html * http://www.my

Re: Replication error (auto)

2003-02-09 Thread mysql-list
Hi "Oliver Schlag" <[EMAIL PROTECTED]>, I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/Replication_FAQ.html * http://www.mysql.com/doc/en/Replication.html * http://www.mysql.com/

Re: CREATE TABLE, NOT NULL fields, and empty strings

2003-02-09 Thread Doug Thompson
On Thu, 6 Feb 2003 12:05:03 -0500, Doug Beyer wrote: > >I create the following table: > >create table t1 ( id varchar(5) not null, name varchar(5) not null ); > >I insert the following row: > >insert into t1 ( id ) values ( "1234" ); > >I do the following selects: > >select count(*) from t1 where n

Not sure my other email got through!

2003-02-09 Thread C. Reeve
Not sure my other email got through, so here it is again, with an updated description of the problem. Hi, I have a database with 3 names in it. In each of these names is 5 categories that have numbers in them. I want to be able to do a select and total these numbers for each name, and then sort

Help. Not sure my other email got through!

2003-02-09 Thread Beauford
Not sure my other email got through, so here it is again, with an updated description of the problem. Hi, I have a database with 3 names in it. In each of these names is 5 categories that have numbers in them. I want to be able to do a select and total these numbers for each name, and then sort

Help, Not sure my other email got through!

2003-02-09 Thread Beauford
Not sure my other email got through, so here it is again, with an updated description. Hi, I have a database with 3 names in it. In each of these names is 5 categories that have numbers in them. I want to be able to do a select and total these numbers for each name, and then sort them in descen

Re: converting MS SQL to MySQL

2003-02-09 Thread Bob Hall
On Thu, Feb 06, 2003 at 10:03:18AM -0500, Hawk wrote: > > > Hi, > > I am new to SQL. I am attempting to create a database that was created in > MS SQL to MySQL. The below SQL statements works with MS SQL. MS SQL could refer to either Jet SQL or SQL Server SQL, but the SQL below is obviously

mysqldump oddness.

2003-02-09 Thread Kevin S. Brackett
mysqldump: Got error: 1064: You have an error in your SQL syntax near 'index READ /*!32311 LOCAL */,sites READ /*!32311 LOCAL */,welcome READ /*!32311 ' at line 1 when using LOCK TABLES anyone know what is causing this, and more imporantly how to fix it? Thanks - kevin PS, please cc me as i'm not

Re: speedup 'alter table' for large tables (auto)

2003-02-09 Thread mysql-list
Hi "Johannes Ullrich" <[EMAIL PROTECTED]>, I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/Creating_many_tables.html * http://www.mysql.com/doc/en/ALTER_TABLE_problems.html * http

Re: SQLyog 3.02 Released (auto)

2003-02-09 Thread mysql-list
Hi "Insanely Great" <[EMAIL PROTECTED]>, I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/Many_versions.html This was an automated response to your email 'SQLyog 3.02 Released'. Final search keyw

follow up to file per field concept

2003-02-09 Thread Heitzso
context ... I had proposed writing a new backend for mysql tailored to read only very large and very wide (lots of columns) tables (14G + ) in which queries never involved more than a small percentage of the available columns (i.e. < 5%) and often lacked WHERE clauses. A couple years ago I argued

Date Conversion with UltraDev (ASP)

2003-02-09 Thread Dana Shields
I am using MySQL with Ultradev (asp server model), and I'm creating a recordset insert form; however, the documenation is obvious that the user has to enter the date in -mm-dd format. However, this will not work for my users, and I need to allow them to enter mm/dd/ or even mm/dd/yy format.

NEWBIE to mysql

2003-02-09 Thread Wileynet
Can anyone tell me why I keep getting an ERROR 1064 with this command ? I just would like to create a table with two fields, name and messages for a Simple guestbook but I want to store the data in a mysql database. mysql> CREATE TABLE info -> ( -> name varchar(50) -> message varchar(

NEWBIE to mysql

2003-02-09 Thread jsp
Can anyone tell me why I keep getting an ERROR 1064 with this command ? I just would like to create a table with two fields, name and messages for a Simple guestbook but I want to store the data in a mysql database. mysql> CREATE TABLE info -> ( -> name varchar(50) -> message varchar

Re: Sorting with null values (auto)

2003-02-09 Thread mysql-list
Hi "Octavian Rasnita" <[EMAIL PROTECTED]>, I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/Problems_with_NULL.html * http://www.mysql.com/doc/en/NULL_values.html * http://www.mysq

Date Conversion with UltraDev (ASP)

2003-02-09 Thread Dana Shields
I am using MySQL with Ultradev (asp server model), and I'm creating a recordset insert form; however, the documenation is obvious that the user has to enter the date in -mm-dd format. However, this will not work for my users, and I need to allow them to enter mm/dd/ or even mm/dd/yy format.

RE: Is it my English or does this sound bad?

2003-02-09 Thread Andrew Braithwaite
This thread is funny, When I first read the phrase in question it made perfect sense in the context in which it was written. Is the next change to the manual going to remove the example in chapter "6.4.5 UPDATE Syntax" which refers to age; mysql> UPDATE persondata SET age=age*2, age=age+1; Remo

Re: MySQL IMAP Server

2003-02-09 Thread Erik Retz
Pretty sure dbmail can use mysql. www.dbmail.org -Erik --- Ben Clewett <[EMAIL PROTECTED]> wrote: > Paul DuBois wrote: > > > > I believe the Horde IMP server uses MySQL: > > > > http://www.horde.org > > Thanks. Looking at this, I belive it's an IMAP > clinet. Unless the web > site is i

DISTINCT LEFT JOIN

2003-02-09 Thread Tom Beidler
I¹m having problems with a left join. I¹m not even sure if I should be using a left join. I have two tables; sites and site_service. Site_service contains service dates for the sites. I¹m trying to write a query that will select each site and the last service date for that site. A site may have ma

Re: CREATE TABLE, NOT NULL fields, and empty strings

2003-02-09 Thread R. Hannes Niedner
On 2/6/03 9:05 AM, "Doug Beyer" <[EMAIL PROTECTED]> wrote: > I attempted to search various places for my answer but with no luck. So I'm > posting here. > > > > I create the following table: > > create table t1 ( id varchar(5) not null, name varchar(5) not null ); > > > I insert the followin

Re: CREATE TABLE, NOT NULL fields, and empty strings

2003-02-09 Thread Philipp Specht
Doug Beyer wrote: create table t1 ( id varchar(5) not null, name varchar(5) not null ); insert into t1 ( id ) values ( "1234" ); select count(*) from t1 where name is null; --> Result = 0 select count(*) from t1 where name = ""; --> Result = 1 Questions: 1) Why did the insert succeed sinc

Re: CREATE TABLE, NOT NULL fields, and empty strings (auto)

2003-02-09 Thread mysql-list
Hi "Doug Beyer" <[EMAIL PROTECTED]>, I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/Problems_with_NULL.html * http://www.mysql.com/doc/en/CREATE_TABLE.html * http://www.mysql.com

Re: natural left join (auto)

2003-02-09 Thread mysql-list
Hi Varshavchick Alexander <[EMAIL PROTECTED]>, I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/JOIN.html * http://www.mysql.com/doc/en/LEFT_JOIN_optimisation.html * http://www.mys

various errors

2003-02-09 Thread goisman
>Description: 1. executing scripts/mysql_install_db gave a ton of warnings like the following: 19760:/usr/local/mysql/libexec/mysqld: /sbin/loader: Warning: Can't find strong symbol for _ZN10field_real3st dEP6Stringm 19760:/usr/local/mysql/libexec/mysqld: /sbin/loader: Warning: Can't find stron

query inserts from a table join

2003-02-09 Thread Andrew Maynes
I don't know whetehr this is going to make any sense! I have a query pulling records from MySQL tables that are joined. The join is for a color_id to an item... /// function showColor($item_id) { $query="select ref_colours.* from item_color ,ref_colou

Re: Replication is out of sync? (auto)

2003-02-09 Thread mysql-list
Hi "goth" <[EMAIL PROTECTED]>, I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/Commands_out_of_sync.html * http://www.mysql.com/doc/en/Replication.html * http://www.mysql.com/doc/

Re: Select question

2003-02-09 Thread C. Reeve
Hi again, After some struggling, I have managed to get the problem below 99% working, the problem now is that I can't get them in descending order. Here is my select statement. $query = "select manager.name, position, MAX(goals) from roster join reference join manager where manager.idn=refe

Select question

2003-02-09 Thread C. Reeve
Hi, I have a database with 3 names in it. In each of these names is 5 categories that have numbers in them. I want to be able to do a select and get the top number from each category for each name and display them from most to least. I have checked all the docs on the select statement, but thi

Re: encrypted password

2003-02-09 Thread William R. Mussatto
> On Wed, 2003-02-05 at 13:53, Kamara Eric R-M wrote: > >> INSERT into tbl_name (username,password) values >> ('user',PASSWORD('passwd')); >> >> and when authenticating the user you can do something like >> >> SELECT username from tbl_name where passwd=PASSWORD('$pass'); and in >> this case $pass i

Re: converting MS SQL to MySQL

2003-02-09 Thread Insanely Great
The best way is to import data from MS SQL Server to MySQL. SQLyog at http://www.webyog.com/sqlyog/download.html has a DTS like ODBC Wizard. Try it out and all you data will be imported. Insane - Original Message - From: "Hawk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday,

Best Way to optimize this

2003-02-09 Thread Dallas Engelken
Hi, I'm trying to learn a little about query optimization.. I have a query that is pretty slow, and was wondering if there is an easy way to speed it up. mysql> EXPLAIN -> SELECT -> mailfrom, -> sum((msgsize)/100) as mb, -> count(id) as count, -> avg(hits) as

request for recommendations on a machine

2003-02-09 Thread Adam Nelson
I've gotten some weird responses to this type of question before, but I'd like some input anyway. We are getting a new dedicated database server. Currently our load average is hovering above 2 and although things work fine, that snappiness is fading as the load becomes higher. We may be able to s

Help with default NULL

2003-02-09 Thread Bhavin Vyas
Hi, I have a table Log described as such: +--+---+--+-+-+---+ | Field| Type | Null | Key | Default | Extra | +--+---+--+-+-+---+ | rec | int(1)| YES | | NULL| | | time | int(10) | |

Re: Batch mode / stored prodecure question?

2003-02-09 Thread bill
Hmm, I thought this question I posted last weekend was a pretty good one, however, no replies have been posted :-( I am new to MySQL and this mailing list, is the the proper place and format for questions of this type? Regards, Bill > Hi all: > > I am building a database containing usage

RE: converting MS SQL to MySQL

2003-02-09 Thread Hawk
At 04:13 PM 2/7/2003 +, you wrote: We sell a data converter for this purpose check out www.bpenet.net I'm not concern about transferring the data. I was having problems creating the indexes. thanks for the reply... Michael Johnson Managing Director Humphrey Consulting Limited BPEnet T

Re: replication

2003-02-09 Thread mysql-list
Hi [EMAIL PROTECTED], I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/Replication.html * http://www.mysql.com/doc/en/Replication_FAQ.html * http://www.mysql.com/doc/en/Replication

RE: converting MS SQL to MySQL

2003-02-09 Thread Cal Evans
check the docs at www.mysql.com for the CORRECT command to create indexes. =C= * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com -Original Message- From: Hawk [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 9:03 AM To: [EMAIL PROTECTED] Subje

Re: MySQL IMAP Server

2003-02-09 Thread Michael T. Babcock
Ben Clewett wrote: I was rather trying to find an IMAP server using MySQL. Ie, somewhere to store my millions of email messages, from many execlent mailing lists, and get at them fast... What you want is the Courier-IMAP mail server which uses the Maildir format to store its messages, runni

Re: backslash before newline

2003-02-09 Thread Dan Nelson
In the last episode (Feb 06), Michael Boudreau said: > Here's something weird: text strings containing newlines seem to have a > backslash character added when the data is exported from the database. > (MySQL 3.23.37 on Solaris--yes we're upgrading to .54) > > However, when I read the data out t

Re: Is it my English or does this sound bad?

2003-02-09 Thread David T-G
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guy -- ...and then Defryn, Guy said... % % I was just reading through the Mysql manual section 3.32 % And came across a sentence that started like this % % Animal sex can be represented in a variety of ways % % My mother tongue is not English but d

RE: Percentile calculations

2003-02-09 Thread Karl Dyson
I tried that, and the answers are very close. I need to do some more testing as my dataset grows to see if it ties up with what is required. My sql server takes ~4 minutes to do it "my" way, and ~1 minute to do: select avg(scantime+processingtime)+(std(scantime+processingtime)*2) from percentile

Re: backslash before newline

2003-02-09 Thread Keith C. Ivey
On 6 Feb 2003, at 8:58, Michael Boudreau wrote: > mysql> select review into outfile '/tmp/MS55038rev1.txt' from > MsReviews where > msid=55038 and msreviewid=1; > Query OK, 1 row affected (0.00 sec) > mysql> quit > Bye > > The newline seems to have had a "\" (backslash, octal

Re: converting MS SQL to MySQL

2003-02-09 Thread mysql-list
Hi Hawk <[EMAIL PROTECTED]>, I'm not sure if you have checked the manual yet, but following links seem to be somewhat related to your query: * http://www.mysql.com/doc/en/Using_mSQL_tools.html * http://www.mysql.com/doc/en/Using_InnoDB_tables.html This was an automated response t

re: IS NULL problem with dates; confirmed on 3.23.x && 4.09

2003-02-09 Thread Victoria Reznichenko
On Wednesday 05 February 2003 02:07, aah at volunteermatch dot org wrote: > >Description: > > Multiple IS NULL tests in a WHERE clause appear to be broken > when testing NOT NULL date fields. Queries work fine against > varchar and int, probably(?) others. > > >How-To-Repeat: >

Re: working around lack of subselects

2003-02-09 Thread Andy Smith
On Thu, Feb 06, 2003 at 09:52:11AM -0500, Brent Baisley wrote: > As long as the foreign keys are index it should be pretty quick. There > really is no way to get around processing every record in table "data". > As that table grows, your query will get slower. But a 157K rows isn't > really a wh