ID EN
Information Functions

SESSION_USER()

MySQL 8.4 🇮🇩 Bahasa Indonesia

SESSION_USER() adalah sinonim untuk USER().

Syntax

MYSQL
CREATE TABLE t (c VARCHAR(288) DEFAULT (SESSION_USER()));

Contoh

Example

Like USER(), this function can be used for the default value of a VARCHAR or TEXT column, as shown in the following CREATE TABLE statement:

MYSQL
CREATE TABLE t (c VARCHAR(288) DEFAULT (SESSION_USER()));