Skip to content

Commit

Permalink
Update docs for expression defaults (#19685) (#19896) (#19897)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jan 6, 2025
1 parent dc286a3 commit 0ddc364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-type-default-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ 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)
* [`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)

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 0ddc364

Please sign in to comment.