Re: Are transactions atomic?

2007-10-14 Thread Baron Schwartz
Hi Douglas, Douglas Pearson wrote: Sorry if this is a dumb question, but are SQL transactions in MySQL atomic? I'm using InnoDB tables in MySQL5. Clearly, transactions have the property that either all updates occur or none do. By atomic, I mean are other queries guaranteed to either see all c

Are transactions atomic?

2007-10-14 Thread Douglas Pearson
Sorry if this is a dumb question, but are SQL transactions in MySQL atomic? I'm using InnoDB tables in MySQL5. Clearly, transactions have the property that either all updates occur or none do. By atomic, I mean are other queries guaranteed to either see all changes from the transaction or none of

SV: Help with query...

2007-10-14 Thread Anders Norrbring
> Hello > where is the FROM for f1 table? > Martin-- Why would there be any "FROM" for the f1 table? It's not needed in the result. Anyway, I've come up with a query that actually seems to do what I'm looking for; SELECT a1.username FROM accountuser AS a1 LEFT JOIN payments AS p1 ON (a1.userna

Re: DOCUMENTATION ABOUT SHOW PROFILE

2007-10-14 Thread Peter Brawley
Wagner, SHOW PROFILE[S] is documented at http://dev.mysql.com/doc/refman/5.0/en/show-profiles.html. 5.0 Community edition only. Perhaps it will appear in 5.1 Community? They do not say so. PB Wagner Bianchi wrote: Hi friends, Somebody here in this list have or knows where i get or read a

DOCUMENTATION ABOUT SHOW PROFILE

2007-10-14 Thread Wagner Bianchi
Hi friends, Somebody here in this list have or knows where i get or read about the PROFILE of MySQL (SHOW PROFILE) ? I see this article of Schummi, but is most superficial. (http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html) Can u help me? Thk's 4 all. Wagner Bianchi

Re: Help with query...

2007-10-14 Thread mysql
Anders Norrbring wrote: I'm trying to set up a query, but I don't really get the result I expected, so can someone please help me out here? The query I've built is this: SELECT a1.username FROM accountuser AS a1 LEFT JOIN (freeaccounts AS f1, payments AS p1) ON (a1.username = p1.username AND p

Help with query...

2007-10-14 Thread Anders Norrbring
I'm trying to set up a query, but I don't really get the result I expected, so can someone please help me out here? The query I've built is this: SELECT a1.username FROM accountuser AS a1 LEFT JOIN (freeaccounts AS f1, payments AS p1) ON (a1.username = p1.username AND p1.username = f1.username)