JOEL LIPMAN Systems / Automation / AI

Knowledge base / Since 1999

MySQL Tutorials & Guides

Practical MySQL tutorials, troubleshooting notes and implementation guides from real projects.

Advanced search

32 entries / MySQL

Clear filters
MySQL Commands to display all columns
MySQL 19197

MySQL Commands to display all columns

The scenario is that I wanted a PHP/MySQL extension created which needs to launch a query to find all columns across the tables of the local database which had valid content to extract keywords from. The following is a MYSQL query that displays the structure of all the columns in all the databases of the localhost: SEL...

Read note
Search and Replace in a MySQL Database
MySQL 16944

Search and Replace in a MySQL Database

Ok is it just me who does everything slowly and badly until someone comes along and says why are you doing it like that? My justification is that the job has to be done no matter what. If you've ever sat there with phpMyAdmin or a MySQL Administration Tool (like Navicat or SQLYog), and still there at night editing each...

Read note
Increment a column in MySQL using the UPDATE query
MySQL 21417

Increment a column in MySQL using the UPDATE query

Suppose you have a column in your table that you use as a counter (storing the value of the counter - eg. times an article has been displayed). Basically what I used to do is something similar to the following: SELECT counter_field_value FROM table1 WHERE column1='this_article' Add 1 to counter_field_value UPDATE table...

Read note
MySQL Data Type Reference Table
MySQL 20159

MySQL Data Type Reference Table

A data type reference table. If you're designing a database then you don't need me to tell you what this is. My personal opinion is to always try to use the minimal type and length of the value required. For example, a comment of 500 words should only be TEXT (~64Kb) rather than LONGTEXT (~4Gb).

Read note
No more notes to load.

Working principle

Our Purpose

This site exists as a practical knowledge base built from real-world experience across systems, platforms, and technologies since 1999. Much of the content documents solutions, edge cases, and working patterns that were learned through investigation where documentation was incomplete or absent, and is shared to reduce the same friction for others.

27 Years in IT
1021 CRM clients
810 Site articles
29.7m+ Reads / hits

Knowledge base

Search notes

Find matching words in article titles and content.