Database.Guide

Skip to content

Beginners

  • What is a Database?
  • Database Tutorial

SQL

  • SQL Tutorial
  • SQL Reference
  • SQL Joins Tutorial
  • SQL Transactions Tutorial
  • Basic SQL Queries

Categories

  • Azure SQL Edge (17)
  • Database Concepts (99)
  • Database Tools (72)
  • DBMS (9)
  • DuckDB (140)
  • MariaDB (424)
  • Microsoft Access (17)
  • MongoDB (265)
  • MySQL (602)
  • NoSQL (8)
  • Oracle (301)
  • PostgreSQL (480)
  • Redis (210)
  • SQL (697)
  • SQL Server (1,169)
  • SQLite (298)

Category: DBMS

Database Management Systems

MongoDB Whitespace Characters

Posted on January 31, 2021January 31, 2021 by Ian

The following table contains a list of whitespace characters that MongoDB removes by default when using the $trim, $ltrim, and $rtrim aggregation pipeline operators.

Continue reading →
MongoDB aggregation, reference

MongoDB $toLong

Posted on January 31, 2021January 31, 2021 by Ian

From MongoDB 4.0, you can use the $toLong aggregation pipeline operator to convert a value to a long.

Continue reading →
MongoDB aggregation, convert, operators, what is

MongoDB $toInt

Posted on January 31, 2021January 31, 2021 by Ian

From MongoDB 4.0, you can use the $toInt aggregation pipeline operator to convert a value to an integer.

Continue reading →
MongoDB aggregation, convert, operators, what is

MongoDB $toDouble

Posted on January 30, 2021January 30, 2021 by Ian

From MongoDB 4.0, you can use the $toDouble aggregation pipeline operator to convert a value to a double.

Continue reading →
MongoDB aggregation, convert, operators, what is

MongoDB $toDecimal

Posted on January 30, 2021January 30, 2021 by Ian

From MongoDB 4.0, you can use the $toDecimal aggregation pipeline operator to convert a value to a decimal.

Continue reading →
MongoDB aggregation, convert, operators, what is

MongoDB $toBool

Posted on January 29, 2021January 30, 2021 by Ian

From MongoDB 4.0, you can use the $toBool aggregation pipeline operator to convert a value to a boolean.

Continue reading →
MongoDB convert, operators, what is

MongoDB $toString

Posted on January 29, 2021January 29, 2021 by Ian

From MongoDB 4.0, you can use the $toString aggregation pipeline operator to convert a value to a string.

Continue reading →
MongoDB convert, what is

MongoDB $convert

Posted on January 28, 2021January 28, 2021 by Ian

In MongoDB, you can use the $convert aggregation pipeline operator to convert a value to a specified type.

You can convert any valid expression to a double, string, ObjectId, boolean, Date, integer, long, or decimal.

Continue reading →
MongoDB aggregation, convert, what is

MongoDB Date() Method

Posted on January 28, 2021January 28, 2021 by Ian

In MongoDB, the Date() method returns a date either as a string or as a Date object.

  • When you call it as Date(), it returns the current date as a string in the mongo shell.
  • When you call it as new Date(), it returns the current date as a Date object.

You can also provide a specific date as an argument to new Date(), so that it uses that date.

Continue reading →
MongoDB dates, methods, what is

MongoDB NOW Aggregation Variable

Posted on January 28, 2021January 28, 2021 by Ian

MongoDB provides the NOW system variable that allows you to get the current datetime value when using an aggregation pipeline.

This can be useful for when you want to update a document with the current datetime.

Continue reading →
MongoDB aggregation, dates, what is
  • «
  • 1
  • …
  • 234
  • 235
  • 236
  • 237
  • 238
  • …
  • 368
  • »

About Database.Guide | Privacy Policy