information_schema.routines.routine_definition

mysql

type: LONGTEXT NULL
5.7-8

mariadb

type: NULL
Note:
Definition of the routine.
© 2022 MariaDB
5.1-10.8

tidb

postgres

type: CHARACTER_DATA NULL
Note:
The source text of the function (null if the function is not owned by a currently enabled role). (According to the SQL standard, this column is only applicable if routine_body is SQL, but in PostgreSQL it will contain whatever source text was specified when the function was created.)
© 1996-2022 The PostgreSQL Global Development Group
10-15
type: CHARACTER_DATA
Note:
The source text of the function (null if the function is not owned by a currently enabled role). (According to the SQL standard, this column is only applicable if routine_body is SQL, but in PostgreSQL it will contain whatever source text was specified when the function was created.)
© 1996-2022 The PostgreSQL Global Development Group
8.2-9.6
Note:
The source text of the function (null if the current user is not the owner of the function). (According to the SQL standard, this column is only applicable if routine_body is SQL, but in PostgreSQL it will contain whatever source text was specified when the function was created.)
© 1996-2022 The PostgreSQL Global Development Group
7.4-8.1

cockroachdb

type: NULL
Note:
Always NULL.
© 2022 CockroachDB
20.1-21.1

mssql

type: NVARCHAR(4000) NULL
Note:
Returns the first 4000 characters of the definition text of the function or stored procedure if the function or stored procedure is not encrypted. Otherwise, returns NULL. To ensure that you obtain the complete definition, query the OBJECT_DEFINITION function or the definition column in the sys.sql_modules catalog view.
© Microsoft 2022
aps-pdw-2016-sql-server-ver15