Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#19896
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
ti-chi-bot committed Jan 6, 2025
1 parent dc286a3 commit 5ba7dec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data-type-default-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ TiDB supports specifying the following expressions as default values in the `DEF
* [`NEXTVAL()`](/functions-and-operators/sequence-functions.md#nextval)
* [`RAND()`](/functions-and-operators/numeric-functions-and-operators.md)
* [`UUID()`](/functions-and-operators/miscellaneous-functions.md#uuid), [`UUID_TO_BIN()`](/functions-and-operators/miscellaneous-functions.md#uuid_to_bin)
<<<<<<< HEAD
* [`VEC_FROM_TEXT()`](/vector-search-functions-and-operators.md#vec_from_text)
=======
* [`VEC_FROM_TEXT()`](/vector-search/vector-search-functions-and-operators.md#vec_from_text)
>>>>>>> 244ca76223 (Update docs for expression defaults (#19685) (#19896))
TiDB supports assigning default values to `BLOB`, `TEXT`, and `JSON` data types. However, you can only use expressions, not literals, to define default values for these data types. The following is an example of `BLOB`:

Expand Down

0 comments on commit 5ba7dec

Please sign in to comment.