YugabyteDB Tips
  • Home
  • About
  • Featured Videos

Category: API

YugabyteDB Tips > API

Override SERIAL Column Default Value in YSQL

Jim KnicelyFebruary 13, 2023

Columns that have a SERIAL data type are auto-incremented. YugabyteDB supports SMALLSERIAL, SERIAL, and BIGSERIAL which are short notation for sequences of […]

Read More

Generate a Random Decimal Number between Two Values 

Jim KnicelyFebruary 9, 2023

In YSQL there is the familiar built-in function named RANDOM which generates a random value between 0 (inclusive) and 1 (exclusive). Although […]

Read More

Display Query Results in a Crosstab-like Representation in YSQLSH

Jim KnicelyFebruary 8, 2023

Pivoting a the rows of a query’s result set into columns is magically simple using YSQLSH, YugabyteDB’s YSQL command line interface.  The […]

Read More

Combine SQL and YSQLSH Meta-commands on the Command Line

Jim KnicelyFebruary 5, 2023

The YugabyteDB SQL shell (ysqlsh) provides a CLI for interacting with YugabyteDB using YSQL The -c flag pecifies that ysqlsh is to execute […]

Read More

Hash Function Result Depends on Data Type

Jim KnicelyFebruary 3, 2023

yb_hash_code is a function that returns the hash of a set of given input values using the hash function DocDB uses to […]

Read More

Posts navigation

Older posts
Newer posts

NOTICE

This site is not affiliated, endorsed or associated with YugabyteDB. This site makes no claims on ownership of trademark rights. The author contributions on this site are licensed under CC BY-SA 3.0 with attribution required.

Find Us

Address
Here!

Hours
24×7

Recommended YugabyteDB Links

  • Home
  • Key Concepts
  • Docs
  • Blog
  • Forum
  • Content Library
  • Support



YugabyteDB Tips

Copyright 2025 - Knicely/Li