Re: Append one table to another?

2005-10-11 Thread Jose Miguel Pérez
f you need to have more control over what is copied, you can add a WHERE clause in the SELECT above. Also, you can restrict how it is done by adding some fields restrictions: INSERT INTO table1 (field1, field2) SELECT field1, field FROM table2 WHERE field1 =

Re: MySQL Subquery bug or am I doing something wrong?

2005-09-01 Thread Jose Miguel Pérez
t you know... I'm not the only one inserting values into the table. :-) Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

MySQL Subquery bug or am I doing something wrong?

2005-09-01 Thread Jose Miguel Pérez
t; FROM sites_criterios -> ); Empty set (0.01 sec) Note that this query is THE SAME as the previous one, but with a wider result set inside the subquery. This makes no difference in my queries as we confirmed at least the word "su-turno" does not exists. Thanks for your patience. If you think I'm doing something wrong please reply. Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: SELECT on string field

2005-02-01 Thread Jose Miguel Pérez
- www.domain.com?id=2 (There is no /) Beware though, this usage will not use indexes on "url" column so be careful and do not use this on big tables. You will need to use more elaborated techniques to speed up query times on big tables. Cheers, Jose Miguel

Re: c program Bus Error (core dumped)

2005-01-11 Thread Jose Miguel Pérez
Hi Andy! > After compiling with the options (as suggested by Jose Miguel Pérez) [...] > I now get ... > Everything Cool with the connection > Bus Error (core dumped) > > Sound familiar!! Sorry Andy but I couldn't help any more. I am not familiar with Solari

Re: c program Bus Error (core dumped)

2005-01-11 Thread Jose Miguel Pérez
z It worked fine, maybe you should try to compile with debug options and give gdb a try. Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: c program Bus Error (core dumped)

2005-01-11 Thread Jose Miguel Pérez
o be some "%" inside "whatever" you will get coredumps. For instance, see what happends when in your program, mysql_error(connection) returns "Please use %d to display integers." (Not a real MySQL error, obviously!! :-) Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Compiling 4.0.22 source including some 4.1.x functions

2004-11-30 Thread Jose Miguel Pérez
functions (which I suppose I can include them even as UDF functions). Please, anyone could give me advice on that? Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: COUNT Problem

2004-10-17 Thread Jose Miguel Pérez
assigned tasks. If you want to > further select which one of the projects with the most assigned tasks you > want, you must order by another column, like date (or filter out the > projects in the WHERE clause). > > Given said that, > > Cheers, > Jo

RE: COUNT Problem

2004-10-17 Thread Jose Miguel Pérez
must order by another column, like date (or filter out the projects in the WHERE clause). Given said that, Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Query with group by

2004-09-21 Thread Jose Miguel Pérez
olution. ;-) > > That would have to do the same thing behind the scenes. I have to beg you pardon here. ;-) Think again this solution doesn't require a JOIN, nor a temporary table. I think the UDF solution doesn't have to be less efficient than a MAX or AVG aggregate fun

Re: Query with group by

2004-09-16 Thread Jose Miguel Pérez
led something like EXTERNAL_MAX(...) or something, so that we could do like: SELECT EXTERNAL_MAX(date, version) ---> i.e: Returns the "version" value for the row with MAX(date). This, for sure, will be the best solution. ;-) Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Query with group by

2004-09-16 Thread Jose Miguel Pérez
the join are unique. The result set returned with the last example is this: ++--+-+ | date | location | version | ++--+-+ | 2004-09-16 | PARIS| 10 | | 2004-09-16 | NEW-YORK | 10 | | 2004-09-15 | TOKYO| 11 | ++--

Re: In search of a good MySQL GUI client

2004-09-09 Thread Jose Miguel Pérez
ing. Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: In search of a good MySQL GUI client

2004-09-09 Thread Jose Miguel Pérez
't showing them in the list. A nasty GUI bug, sure, but this renders SQLyog unuseable to me. Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

In search of a good MySQL GUI client

2004-09-08 Thread Jose Miguel Pérez
involved creating such a tool, I'm a programmer after all, and some of them are in beta anyway. I would appreciate if anyone knows some tool which good foreign key support. Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Deleting using a table as reference.

2003-12-04 Thread Jose Miguel Pérez
e that I use MySQL 4.0.12, so I cannot use the DELETE ... USING ... syntax which were added in 4.0.2 Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: ip range lookup

2003-10-04 Thread Jose Miguel
index | +-+---+---+-+-+--+-- -+--+ System: MySQL server 4.0.13 on a Red Hat 7.2 box. Cheers, Jose Miguel. - Original Message - From: "Willem Bison" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]&

Re: How many records can a single MySql Table Hold.

2003-08-22 Thread Jose Miguel Pérez
you don't have more indexes than really needed. You can test with a temporal table without any keys (not even primary) and adding indexes until you get the behaviour described so that you can locate which is the problem. Cheers, Jose Miguel. -- MySQL General Mailing List For

Re: Specifics on using join & multiple tables

2003-06-05 Thread Jose Miguel Pérez
en "(sales2.amt - sales1.amt) == NULL" which is, obviously, erroneous for your pourposes of getting an increment of 1000 in the sales. I hope this helped! Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: nested ORDER BY statements

2003-06-05 Thread Jose Miguel Pérez
wice, except for the JOIN clauses, of course. For example, you cant type "... WHERE blah, blah WHERE blah, blah too" nor repeat a GROUP BY, SORT, etc. May I suggest you to read the manual more carefully? ;-) Cheers, Jose Miguel. -- MySQL General Mailing Li

Re: Problem connecting with sockets to MySQL

2003-05-29 Thread Jose Miguel Pérez
3.41 version. However, I have read all the changelogs up to 4.0 and it doesn't say anything the developers have changed something to the low level connection layer or something. Cheers, Jose Miguel. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql T

Problem connecting with sockets to MySQL

2003-05-29 Thread Jose Miguel Pérez
s seen above. I have not come to a conclusion on this topic, so all you can help is greatly appreciated. I go so far as to capture the packets with a packet sniffer (ethereal), and I got crazy: Everything seems fine, all connections generate the same packets, in the same order... But when conne