Skip to content

Database.Guide

SQLite

Return Rows that Contain Only Non-Alphanumeric Characters in SQL

July 24, 2022 by Ian

Here are examples of using SQL to return rows that contain non-alphanumeric characters in various DBMSs.

Non-alphanumeric characters include punctuation characters like !@#&()–[{}]:;',?/* and symbols like `~$^+=<>“, as well as whitespace characters like the space or tab characters.

Read more

Categories MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite Tags how to

Subtract Hours from a Time Value in SQLite

July 15, 2022 by Ian

In SQLite, we can use the TIME() function to subtract one or more hours from a time value.

For datetime values, we can use the DATETIME() function.

Read more

Categories SQLite Tags dates, how to

Return Only Numeric Values in SQL

July 5, 2022 by Ian

If you ever need to use SQL to return just the numeric values in a character column, the method you use will largely depend on your DBMS. Most DBMSs support regular expressions (regex), but some don’t. And some include functions that can detect numeric values.

Here are examples of how to do it in the more popular DBMSs.

Read more

Categories MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite Tags how to

3 Ways to Get the Definition of a Generated Column in SQLite

June 28, 2022 by Ian

When we have a table with a generated column, here are two methods we can use to return its definition.

Read more

Categories SQLite Tags computed columns, how to

Find Rows that Contain Uppercase Characters in SQL

June 22, 2022 by Ian

Most RDBMSs provide at least a few ways to return rows that contain uppercase characters. Here are some options available in the major RDBMSs.

Read more

Categories MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite Tags how to, sql

How to Get the Last Day of the Month in SQL

November 7, 2025June 15, 2022 by Ian

Below are examples of using SQL to return the last day of the month across various DBMSs.

This could be the last day of the current month, or the last day of a month based on a given date.

Read more

Categories MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite Tags dates, how to

How to Convert to Lowercase in SQLite

June 10, 2022 by Ian

In SQLite we can use the lower() function to convert uppercase characters to lowercase.

Read more

Categories SQLite Tags how to

Find Duplicate Rows that have a Primary Key in SQL

October 13, 2023June 7, 2022 by Ian

Here are examples of using SQL to return duplicate rows when those rows have a primary key or other unique identifier column.

These queries work in most of the major RDBMSs, including SQL Server, Oracle, MySQL, MariaDB, PostgreSQL, and SQLite.

Read more

Categories MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite Tags how to

Add Years to a Date in SQLite

June 5, 2022 by Ian

In SQLite, we can use the DATE() function to add one or more years to a date.

For datetime values, we can use the DATETIME() function.

Read more

Categories SQLite Tags dates, how to

Find Rows that Contain Lowercase Characters in SQL

June 4, 2022 by Ian

Most RDBMSs provide at least a few ways to return rows that contain lowercase characters. Here are some options available in the major RDBMSs.

Read more

Categories MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite Tags how to, sql
Older posts
Newer posts
← Previous Page1 … Page8 Page9 Page10 … Page31 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved