Win2K, Apache 2.0.47, Tomcat 4.1.27
Having tried various tutorials I finally found one that worked .. http://www.greenfieldresearch.ca/technical/jk2_config.html
So I've got Apache and Tomcat running; localhost resolves to Apache's default homepage, while localhost:8080 shows Tomcat's. And when...
ah right, I had read some of its limitations in the manual.
Sorry, hadn't noticed a mySQL forum here - though the answers I've received have been really helpful, I did a relational databases course 3 years ago, SQL was one module out of several. The SQL part covered most of it but was fairly...
neither solution works in mySQL.
in the original style..
UPDATE table1
SET table1.val = table1.val - 1
works, but as soon as you introduce a 2nd table it doesnt
UPDATE table1, table2
SET table1.val = table1.val - 1
<no joy>
Thanks for the help swampboogie, that looks like it...
Is it possible to do an update on one table, with a selection across 2 tables, or does one first have to query a table, then iterate through the rows doing an update on the other table per line (which seems v inefficient)?
I want to say something like
UPDATE table1, table2 SET table1.val =...
Am using PHP/MySQL, though that should be fairly irrelevant..
I have two tables and am trying to write a query that does a simple selection on the first table (on thrID), and if there is a corresponding record in the other table and a match on another selected field (userID) indicate that with...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.