Blog

Page 351 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Get day of week in SQL Server 2005/2008
datetime

Get day of week in SQL Server 2005/2008

Published on September 2, 2023

šŸ“† SQL Server 2005/2008: Find the Day-of-Week! šŸ“… Have you ever wondered how to find the day of the week in SQL Server 2005/2008? šŸ¤” Whether you're organizing your data, analyzing trends, or just curious about the day a specific date falls on, this guide

Cover Image for Getting "Lock wait timeout exceeded; try restarting transaction" even though I"m not using a transaction
mysql

Getting "Lock wait timeout exceeded; try restarting transaction" even though I"m not using a transaction

Published on September 2, 2023

# Getting "Lock wait timeout exceeded; try restarting transaction" even though I'm not using a transaction šŸ”’ Are you getting the "Lock wait timeout exceeded; try restarting transaction" error in MySQL, even though you swear you're not using a transaction

Cover Image for How to set variable from a SQL query?

How to set variable from a SQL query?

Published on September 2, 2023

## How to Set a Variable from a SQL Query: A Step-by-Step Guide So you're trying to set a variable from a SQL query but running into issues? Don't worry, you're not alone! This is a common problem that many developers face. In this guide, we'll walk you t

Cover Image for Best way to test if a row exists in a MySQL table
mysqlperformance

Best way to test if a row exists in a MySQL table

Published on September 2, 2023

# šŸ•µļøā€ā™‚ļø How to Test if a Row Exists in a MySQL Table So you're working with MySQL and scratching your head on the best way to determine if a row exists in a table, huh? Don't worry, my tech-savvy friend, I've got your back! In this blog post, we'll explo

Cover Image for How to change a PG column to NULLABLE TRUE?

How to change a PG column to NULLABLE TRUE?

Published on September 2, 2023

## Title: "Unlocking the Flexibility: Changing a PG Column to Nullable True" šŸ”šŸ’ŖšŸ”„ ### Introduction šŸ’” Do you ever feel like your database schema is holding you back? Like there's a locked gate preventing you from achieving the flexibility you desire? We

Cover Image for Difference between numeric, float and decimal in SQL Server
types

Difference between numeric, float and decimal in SQL Server

Published on September 2, 2023

## Understanding the Differences: Numeric, Float, and Decimal in SQL Server šŸ’° When it comes to working with numbers in SQL Server, you may come across three common datatypes: `numeric`, `float`, and `decimal`. These datatypes are used for storing numeric

Cover Image for SQL to find the number of distinct values in a column

SQL to find the number of distinct values in a column

Published on September 2, 2023

# šŸ•µļøā€ā™€ļø SQL Made Easy: Counting Distinct Values in a Column Are you tired of staring at your SQL query results and scratching your head trying to figure out how many distinct values are in a particular column? šŸ¤” Don't worry, you're not alone! Counting d

Cover Image for How to SELECT FROM stored procedure

How to SELECT FROM stored procedure

Published on September 2, 2023

# How to SELECT FROM stored procedure šŸ“šŸ’» So, you've got a stored procedure that is returning rows? šŸ¤” And now you're wondering if it's possible to select the output by calling this procedure directly, without any additional hassle? šŸ¤·ā€ā™‚ļø Well, you're in

Cover Image for Update a column value, replacing part of a string
mysql

Update a column value, replacing part of a string

Published on September 2, 2023

# Updating Column Values in MySQL: Easy Solution for URL Replacement šŸ”„ So, you want to update the URLs in a specific column of your MySQL table, replacing just a part of the string while keeping the filename unchanged. Don't worry, we've got you covered!

Cover Image for Hibernate show real SQL
hibernatejava

Hibernate show real SQL

Published on September 2, 2023

šŸ–„ļø **Hibernate Show Real SQL: Unveiling the Magic** Are you tired of seeing the cryptic SQL statements generated by Hibernate in your console? You're not alone! Many developers have struggled with this very issue. But fear not, for we have easy solutions