Profile
Achievement
satie83's Recent SnippetsTagged mysql
- All /
« Prev 1 Next »
In SQL I can get this by adding AND to the join
LEFT JOIN installations i ON a.id = i.app AND i.page = :page
This way I get the installation info for an app that has an installation on the page, but I get null values on the columns for app's that...
0
2644
posted 9 years ago by satie83
You could start a transaction before running your queries and then rollback after running them. Note that to do this you'll require InnoDB or XtraDb tables (won't work on MyISAM).
0
997
posted 12 years ago by satie83