Re: [PHP-DB] Re: mysql statement [SOLVED]

2007-09-27 Thread Jas
od as LIKE OR LIKE OR ... > results-wise. I don't know if it's faster/less intensive or not though. > You'd have to do some tests. > > Also, comparisons like "=" should (if I recall) be faster than LIKE > comparisons. So if you really meant to use "=

Re: [PHP-DB] Re: mysql statement [SOLVED]

2007-09-26 Thread TG
e or not though. You'd have to do some tests. Also, comparisons like "=" should (if I recall) be faster than LIKE comparisons. So if you really meant to use "=", do that instead. Let me know if any of that's unclear. I know I get some kooky ideas sometimes. Also, an

[PHP-DB] Re: mysql statement [SOLVED]

2007-09-26 Thread Jas
Got if figured out, needed a sub-select type of query: mysql> SELECT * -> FROM ( SELECT * FROM `orders` -> WHERE `group` = "groupname" ) -> AS orders UNION SELECT * FROM `orders` -> WHERE `ordernum` LIKE "35132" -> OR `price` LIKE "35132" -> OR `partnum` LIKE "35132"