|
Dakha posted:Yeah, they are just really stupidly named columns. The columns are in several tables im joining, so do I use:
|
# ¿ Nov 27, 2007 03:41 |
|
|
# ¿ Apr 29, 2024 05:20 |
|
mister_gosh posted:Can anyone help? I'm totally lost.
|
# ¿ Dec 6, 2007 04:43 |
|
Victor posted:Is this a single index, or multiple? Indexes can be on multiple columns. In particular, you want an index on (status, DATE).
|
# ¿ Jan 12, 2008 16:53 |
|
Victor posted:Maybe the planets aren't aligned?
|
# ¿ Jan 14, 2008 14:56 |
|
fletcher posted:edit2: Another PDO question now that I have figured out the error. I want to iterate over every row of a table and update information in another table, like this:
|
# ¿ Jan 25, 2008 20:17 |
|
fletcher posted:The problem is that I need the data from the first query in order to execute the second query. I upped the allowed memory size in php to 256MB and it let me do a fetchAll(), I was just trying to avoid doing that though.
|
# ¿ Jan 25, 2008 23:55 |
|
nbv4 posted:cool that worked. I couldn't get that char() thing to work, so I just used I don't know about other DB systems, but MySQL lets you do SELECT DISTINCT manufacturer FROM planes WHERE pilot_id='5' ORDER BY manufacturer IS NULL, manufacturer kalleboo fucked around with this message at 18:12 on Feb 2, 2008 |
# ¿ Feb 2, 2008 18:07 |
|
ray2k posted:Alright, what's the norm for getting aggregate counts of 1:1 relationships? Like, if I have a Product table with a CategoryId that foreign keys to Category.CategoryId, how would I get the number of Products by CategoryId, including 0's for any CategoryId's not being used by a Product record?
|
# ¿ Feb 5, 2008 19:52 |
|
Victor posted:kalleboo, where did you put the [code][/code] tags?
|
# ¿ Feb 5, 2008 23:53 |
|
php:<? SELECT Category.CategoryId, COUNT(Product.ProductId) FROM Category LEFT JOIN Product ON Product.CategoryId=Category.CategoryId GROUP BY Category.CategoryId?>
|
# ¿ Feb 6, 2008 00:41 |
|
nbv4 posted:I am, I just would like one last line of defence against total query entry, just for piece of mind against anything unforeseen... I tried running through each query once with "LIMIT 0" attached, but that didn't work. I'll look into the transaction thing. kalleboo fucked around with this message at 12:53 on Feb 7, 2008 |
# ¿ Feb 7, 2008 12:51 |
|
|
# ¿ Apr 29, 2024 05:20 |
|
da keebsta knicca posted:I am doing this job search still, but I am having trouble with mysql returning results based on searches with terms like "C++" and "C#". I think it only searches against "C". Is there a way to have it to make sure it searches against the "++" characters also?
|
# ¿ Apr 14, 2008 05:13 |