Jesse wrote:
Are you sure this is the right line - I mean the whole statement?
You are right, I did not include the whole statement. Here's the entire
section:
/*!50003 SET @OLD_SQL_MODE=@@SQL_MODE*/;
DELIMITER ;;
/*!50003 SET SESSION
Hi,
This is because of the version conflict only
Try usinng this option as
Login into the mysql :-
use databasename
\. filename.txt
Thanks Regards
Dilipkumar
- Original Message -
From: Jesse [EMAIL PROTECTED]
To: MySQL List mysql@lists.mysql.com
Sent: Monday, July 24, 2006
Hi,
Try out this :-
http://dev.mysql.com/
Try the new MySQL 5.1 Beta!
a.. Row-based Replication
b.. Table and Index Partitioning
c.. MySQL Cluster Disk-Based Tables
d.. Dynamic Pluggable Storage Engine API
e.. MySQL Cluster Replication
f.. Learn About More Cool Features (pdf) »
Hi,
This is because direct inserts are being pointed to one of the slave (or)
you have taken the dump from the master in which when you try to restore
it and start replication you will have to start from the master position
what u have noted. In such case you might get this error to ignore
Hi,
Instead of using select count(*) from tablename
You can try with
show table status like 'tablename'
This doesn't takes much longer time.
Thanks Regards
Dilipkumar
- Original Message -
From: David Hillman [EMAIL PROTECTED]
To: mysql@lists.mysql.com
Sent: Tuesday, July 25, 2006
Thanks for the start Peter. I have got that 'Pivot table using a JOIN'
query returning results for 2 records just like the example but I'm
stuck in modifying to get the result for the five questions (100 to
104).
mysql select * from test;
+---+-++
| name | question_id
Yes your right dilip , but it wont help for INNODB .
INNODB , Rows ( show table status\G ) value is an approximation, and
may vary from the actual value .Since innodb doesnt keep track on record
count
For innodb use |SELECT COUNT(*)| to obtain an accurate count.Correct me
if iam wrong
-
hi, Chris
Thank you for your advice!
I know that Innodb use the logfiles circularly. Can Innodb re-use the
deleted rows' disk space in tablespace?
Regards,
Leo Huang
2006/7/26, Chris [EMAIL PROTECTED]:
leo huang wrote:
hi, Dilipkumar
Thank you very much!
I think I know the fact: The
All,
how do I go about building a binary on my workstation with e.g.
libmysqlclient.15 such that same binary can also be deployed on a
production machine with libmysqlclient.14 )or lower) ?
Do I need to have the lower-level mysqlclient library available on my
development workstations?
/Per
Strange it ran just fine here on my 5.0.22-nt with sample MyISAM table
`alumni`... Is your table `alumni` MyISAM or Innodb?
It is MyISAM.
Here are few more pointers:
1. If it is possible *always* try latest version first when solving
problems. In your case 5.0.22 I think...
You were
You would perform the prepare within the stored procedure.
Dan.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon
Sent: Tuesday, July 25, 2006 10:31 AM
To: mysql@lists.mysql.com
Subject: Re: Stored procedures
But the scope of a prepared statement
Hi Joerg, all,
I found the ar utility under the /usr/ccs/bin. The make works very fine
(AR=ar) even that it comes from the Sun CC Compiler , until the
g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti
-D_FILE_OFFSET_BITS=64
-DHAVE_RWLOCK_T -o .libs/gen_lex_hash
I am trying to add a foreign key to one of my tables. When I execute the
following SQL Code:
ALTER TABLE `bpa`.`confinvitems` ADD CONSTRAINT `FK_confinvitems_1` FOREIGN
KEY `FK_confinvitems_1` (`InvDetID`)
REFERENCES `confinvdet` (`ID`)
ON DELETE CASCADE;
I get the error:
MySQL Error Number
Hi.
Let me explain something about coalesce.
coalesce(field,0) return 0 if the field value equals null or the field value
if it´s not null.
obed [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Hi. thanks ! but nop...
SELECT id_ingenio,cantidad FROM detalle_transaccion WHERE
Mark,
Thanks for the start Peter. I have got that 'Pivot table using a JOIN'
query returning results for 2 records just like the example but I'm
stuck in modifying to get the result for the five questions (100 to
104).
Right. The 'max-concat trick', 'Group column statistics in rows', might
be
Pardon me, too early not enough coffee, that's not quite the
'max-concat trick', but it oughtta work.
PB
-
Peter Brawley wrote:
Mark,
Thanks for the start Peter. I have got that 'Pivot table using a JOIN'
query returning results for 2 records just like the example but I'm
stuck
Hi,
Is this a InnoDB table.
Thanks Regards
Dilipkumar
- Original Message -
From: Jesse [EMAIL PROTECTED]
To: MySQL List mysql@lists.mysql.com
Sent: Wednesday, July 26, 2006 6:28 PM
Subject: Adding Foreign Key Fails
I am trying to add a foreign key to one of my tables. When I
Is this a InnoDB table.
Yes, sorry, I should have mentioned that. The rest of my tables are MyISAM,
and I discovered that it does not support Foreign Keys. So, I converted
these tables to InnoDB so that I can put the Foreign Keys in.
Thanks,
Jesse
--
MySQL General Mailing List
For list
On 7/26/06, João Cândido de Souza Neto [EMAIL PROTECTED] wrote:
Hi.
Let me explain something about coalesce.
coalesce(field,0) return 0 if the field value equals null or the field value
if it´s not null.
:-) ooo !!! ok... it's the same to do: case when field is null then
0 else field end
I am trying to allow a user to use checkboxes for multiple selections, and I am
trying to get the database to record the choices made by the user. I am using
a VARCHAR(250), but I am guessing that may be wrong. Also, other than adding a
[] to the end of the 'name' (e.g. input type=checkbox
Nicholas Vettese wrote:
I am trying to allow a user to use checkboxes for multiple selections, and I am trying to get the database to record the choices
made by the user. I am using a VARCHAR(250), but I am guessing that may be wrong. Also, other than adding a [] to the
end of the 'name'
Looks like more of a php question that a mysql question ;)
anyway, the mysql part:
use either an unsigned interger (tinyint, if less than 256
possibilities, smallint if over 256 but less than 65565, etc)
or use a set or enum.
Using a varchar is not really the way to go.
If you choose to
Nick,
It looks like the mysql part has been answered. I was going to suggest
using a ENUM
field myself.
For the PHP part, if you are trying to keep multiple rows in your HTML
correlated,
ie $customer[1] = $mod_type[1] you may not want to use a checkbox field
checkbox fields only pass a field
I know the general philosophy with regards to releases, but the bug fix lists
within MySQL 5.0.23, 24, and 25 seem substantial enough to merit
a new binary release for MySQL. Does anyone else feel similarly on this? I'm
really looking forward to MySQL 5.0.25...how about it?
Best regards,
Best group member,
I have this query on MySQL version 4.0.27:
SELECT part.memberid, part.prefname, part.email, COUNT(*) AS numberofans
FROM tblparticipants part
LEFT JOIN tblanswers answer ON (answer.par_num=part.memberid)
LEFT OUTER JOIN profilepdfauth pdfauth ON
Peter Lauri wrote:
Best group member,
I have this query on MySQL version 4.0.27:
SELECT part.memberid, part.prefname, part.email, COUNT(*) AS numberofans
FROM tblparticipants part
LEFT JOIN tblanswers answer ON (answer.par_num=part.memberid)
LEFT OUTER JOIN profilepdfauth pdfauth ON
Use the HAVING clause:
SELECT part.memberid, part.prefname, part.email, COUNT(*) AS numberofans
FROM tblparticipants part
LEFT JOIN tblanswers answer ON (answer.par_num=part.memberid)
LEFT OUTER JOIN profilepdfauth pdfauth ON (part.memberid=pdfauth.memberid)
WHERE pdfauth.id IS NULL
GROUP BY
That did it, thank you all!
-Original Message-
From: Michael Stassen [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 2:10 AM
To: Peter Lauri
Cc: mysql@lists.mysql.com
Subject: Re: WHERE problem, or is it a problem?
Peter Lauri wrote:
Best group member,
I have this query on
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
I've a problem with triggers and federated table:
I would like insert a record in a unknown table. The table where insert
the record is unknown when the trigger starts. But, with a field value,
I select the table name.
CREATE TRIGGER
I am using Red Hat Fedora Core 4 and I wanted to yum mysql version 5
of any other and find with Core 4 I can yum only mysql version 4.
I imagine Core 5 might be able to yum mysql version 5 but not
certain of that. Is there a way I can yum the later version? I studied
the man for yum but
Best group member,
I just made up this query, but let us work from this:
SELECT * FROM table1
LEFT OUTER JOIN table2 ON (table1.id=table2.id)
WHERE table2.prop IS NULL;
This selects all rows from table1 where the id is not also in the table2. Is
there any more logic way to do this, this is what
On Wednesday 26 July 2006 10:31 am, Peter Lauri wrote:
Best group member,
I just made up this query, but let us work from this:
SELECT * FROM table1
LEFT OUTER JOIN table2 ON (table1.id=table2.id)
WHERE table2.prop IS NULL;
If I understand correct:
SELECT * FROM table 1
WHERE id NOT IN
I tried that, but that generates:
#1064 - You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near
'SELECT id FROM table2)
LIMIT 0, 100' at line 1
Maybe it is a Version issue? What version of MySQL do support sub
On Wednesday 26 July 2006 10:53 am, Peter Lauri wrote:
I tried that, but that generates:
#1064 - You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near
'SELECT id FROM table2)
LIMIT 0, 100' at line 1
What's the
The query in full was exactly as you wrote it (but without the typo) :)
-Original Message-
From: Chris White [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 5:56 AM
To: Peter Lauri
Cc: mysql@lists.mysql.com
Subject: Re: JOIN table where not in other table
On Wednesday 26 July
On Wednesday 26 July 2006 11:00 am, Peter Lauri wrote:
The query in full was exactly as you wrote it (but without the typo) :)
Alright, yes, what is your version of MySQL? I'm in the 5.0.22 series here
and that works just fine.
--
Chris White
PHP Programmer/DBackItUp
Interfuel
--
MySQL
4.0.27, so that is probably the reason. Any other way then with a sub query?
I solved it with my stupid solution, feels strange to JOIN tables and
choose rows where the join value is NULL (left outer join) :)
-Original Message-
From: Chris White [mailto:[EMAIL PROTECTED]
Sent: Thursday,
Many thanks Peter, that works a treat.
Just recapping for others who may be interested.
The problem was to get a result table that was displaying like this:
mysql select * from test;
+---+-++
| name | question_id | answer |
+---+-++
| Mark |
On Wednesday 26 July 2006 11:30 am, Peter Lauri wrote:
4.0.27, so that is probably the reason. Any other way then with a sub
query? I solved it with my stupid solution, feels strange to JOIN tables
and choose rows where the join value is NULL (left outer join) :)
Are you using phpMyAdmin? I
The tables are of course not named table1 and table2, just using that in the
discussion. :) All is working right now, but my solution is NOT that good
according to the small amount of logic I have :)
-Original Message-
From: Chris White [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27,
Peter
feels strange to JOIN tables and
choose rows where the join value is NULL (left outer join) :)
It's standard SQL and has a name, "exclusion join". Not a bit more
"strange" than counting wot's missing.
PB
Peter Lauri wrote:
4.0.27, so that is probably the reason. Any other way then
leo huang wrote:
hi, Chris
Thank you for your advice!
I know that Innodb use the logfiles circularly. Can Innodb re-use the
deleted rows' disk space in tablespace?
I'm sure it will, what makes you think it won't?
You might need an 'optimize table' or something to see a reduction in
the on
Annam Srinivas wrote:
Hi,
Problem is like this. There is table with 'table_name-1' where, when I
am executing the query like ' select * from table_name-1;' it is showing
only 432 records but acctually there are 539 records in the table. when I
select individual records from the table it is
43 matches
Mail list logo