SQL

SQL: Update/Set Table Field To All Lowercase

SQL: Update/Set Table Field To All Lowercase

July 10th, 2023

Here’s a short snippet that I recently used to remove some camel case records and make them lowercase. UPDATE `table` [More…]

SQL: Replace All HTTP Links/URLs with HTTPS

SQL: Replace All HTTP Links/URLs with HTTPS

May 6th, 2023

Here’s a short snippet that I recently used to replace a bunch of old HTTP links with the now-supported HTTPS. [More…]

SQL: Remove/Strip Newline Characters From Field

SQL: Remove/Strip Newline Characters From Field

April 12th, 2023

On MacOS, Sequel Ace imports CSV’s with newlines at the end. This snippet updates the data to remvoe those lines: [More…]

PDO/PHP Batch Inserting Records to Improve Speed

PDO/PHP Batch Inserting Records to Improve Speed

January 25th, 2023

While making a remittance checker I was running into issues with the huge amount of records coming in that needed [More…]