Browsing Tag

Databases

Quick Tip: Working with MySQL and SUM
videos

Quick Tip: Working with MySQL and SUM

In today’s quick tip screencast, we’re going to learn a MySQL query trick. You might be already familiar with the SUM() and IF() functions. We will be combining them to come up with some useful queries. This can reduce the number of queries you need to run for fetching certain types of summary data, and also provide a performance improvement.

The Problem with PHP’s Prepared Statements
videos

The Problem with PHP’s Prepared Statements

PHP’s prepared statements (for database access) are fantastic. Not only do they help secure your database queries, but they’re also particularly more efficient for larger products. However, there are a couple issues that appear to make these methods less flexible than we’d hope. For one, we must utilize the bind_result method, and pass in a specific number of variables. However, what happens when this code is within a class, and we won’t immediately know how many variables to pass? Luckily, there’s a solution! I’ll show you what it is in today’s video tutorial.

Quick Tip: Working with MySQL and INNER JOIN
videos

Quick Tip: Working with MySQL and INNER JOIN

In today’s video quick tip, we’ll go over when and why to use JOINs when working with your databases.

Quick Tip: A Fast Overview of Querious (MySQL Manager)
videos

Quick Tip: A Fast Overview of Querious (MySQL Manager)

In today’s video quick tip, we’ll have a quick (not sponsored) overview of a Mac database manager for MySQL that I came across yesterday, called Querious. As I mention in the screencast, I particularly like this one, because it just works — without being too complicated or overwhelming in the way that PHPMyAdmin might be for some.