Skip to content

Database.Guide

how to

3 Ways to Clone a Table in MariaDB using SQL

December 17, 2022 by Ian

We have several options when it comes to using SQL to clone a table in MariaDB. And we have the option to clone the table with data, or without data.

Here are three SQL options for cloning a table in MariaDB.

Read more

Categories MariaDB Tags how to

Return All DEFAULT Constraints in a SQL Server Database (T-SQL)

September 5, 2024December 16, 2022 by Ian

In SQL Server, we can query the sys.default_constraints system catalog view to return a list of DEFAULT constraints in the current database.

Read more

Categories SQL Server Tags constraints, how to, mssql, t-sql

How to Create a Sequence in SQL Server

December 14, 2022 by Ian

SQL Server supports sequences. Sequences enable us to create our own sequence of numeric values.

Sequences are similar to identity columns in that they generate a unique value that can be used to identify a column. However, sequences are created completely independently of any table.

Read more

Categories SQL Server Tags how to, mssql, sequences, t-sql

List All Synonyms in a SQL Server Database (T-SQL)

December 13, 2022 by Ian

In SQL Server, we can use the sys.synonyms system catalog view to get a list of synonyms in the current database. This view returns all objects in the sys.objects view of type SN (which stands for synonym).

Read more

Categories SQL Server Tags how to, mssql, t-sql

How to Move a Table to Another Schema in SQL Server

December 12, 2022 by Ian

In SQL Server, if you ever need to move one or more tables to another schema, you can use the T-SQL ALTER SCHEMA command.

Read more

Categories SQL Server Tags database schema, how to, mssql, t-sql, tables

Fix “ERR value is not an integer or out of range” When using the HRANDFIELD Command in Redis

December 11, 2022 by Ian

If you’re getting an error that reads “ERR value is not an integer or out of range” when using the HRANDFIELD command in Redis, it could be because you’re passing a second argument that isn’t an integer. Or if it is an integer, it could be out of range.

Read more

Categories Redis Tags errors, how to

Return All CHECK Constraints in a SQL Server Database (T-SQL)

August 9, 2024December 10, 2022 by Ian

In SQL Server, we can query the sys.check_constraints system catalog view to return a list of CHECK constraints in the current database.

Read more

Categories SQL Server Tags constraints, how to, mssql, t-sql

Fix “ERR wrong number of arguments for ‘srem’ command” in Redis

December 9, 2022 by Ian

If you’re getting an error that reads “ERR wrong number of arguments for ‘srem’ command” in Redis, it’s probably because you’re calling the SREM command with the wrong number of arguments.

To fix this issue, make sure you pass the correct number of arguments. At the time of writing, the SREM command requires at least two arguments.

Read more

Categories Redis Tags errors, how to

Return the Definition of All Computed Columns in a SQL Server Database (T-SQL)

December 8, 2022 by Ian

In SQL Server we can run a query against the sys.computed_columns system catalog view to return all computed columns and their definitions.

Read more

Categories SQL Server Tags computed columns, how to, mssql, t-sql

How to Insert Multiple Rows in SQL

December 7, 2022 by Ian

When working with SQL, we can use the INSERT statement to insert a new row into a table. But what if we want to insert more than one row?

Fortunately, we can still use the INSERT statement. Below is a quick example that inserts multiple rows using SQL.

Read more

Categories Azure SQL Edge, MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite Tags how to
Older posts
Newer posts
← Previous Page1 … Page80 Page81 Page82 … Page201 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved