Query Speed in Terminal vs. PHP

2004-03-02 Thread Chris Fowler
I have a query that is admittedly inefficient in that it is doing multiple OR clauses and joining multiple tables. However, the query runs at an acceptable speed if I am in a terminal session and run the query directly in the terminal. On the other hand, when PHP performs the same query for use

Mixed Inner and Left Join SQL Statement

2003-09-15 Thread Chris Fowler
+--------+----+ Any help would be greatly appreciated! Thanks. Chris Fowler [EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Mixed Left and Inner Join

2003-09-15 Thread Chris Fowler
++ | 1 | TV/VCR | Event One | | 2 | Overhead Projector | Event Two | | 3 | Table and Chairs | NULL | | 4 | Artboard | NULL | +++----+ Any help would be greatly apprecia

Update Select Syntax

2003-07-04 Thread Chris Fowler
tables would be dropped. For this example, the individual table would have a field added called individual.street. The problem: How can a write a statement in MySQL 4.0.12 that will move address.street data into individual.street? Thanks! Chris Fowler -- MySQL General Mailing List For list

Mixed LEFT and INNER JOINs Report

2003-04-05 Thread Chris Fowler
sales_opp_source.id = sales_opp. sales_opp_source_id INNER JOIN contract ON sales_opp.id = contract. sales_opp_id GROUP BY name; Thanks. Chris Fowler -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Regular Expression / Replace Help

2003-03-13 Thread Chris Fowler
cords: (555) 123-1234 123-4567 x16 I want a SQL statement that will return the 2 records like this: 5551231234 123456716 This is not proper syntax, but I would think it is close... select replace(contact_phone, REGEXP "^[1234567890]",'') from individual; I would really appreciate an

Regular Expression / Replace Help

2003-03-07 Thread Chris Fowler
cords: (555) 123-1234 123-4567 x16 I want a SQL statement that will return the 2 records like this: 5551231234 123456716 This is not proper syntax, but I would think it is close... select replace(contact_phone, REGEXP "^[1234567890]",'') from individual; I would really appreciate an

EXPLAIN and TYPE = ALL

2003-02-16 Thread Chris Fowler
st |1 | name_last | A |1060 |5 | NULL | | ++++--+- +---+-+--+----+-+ Regards, Chris Fowler -