Find the user name or user id.
The SQL standard permits the function USER
Specific to SQLite
none
DB2
Find the user name or user id.
The SQL standard permits the function USER
Specific to DB2
none
MS Access
Find the user name or user id.
The SQL standard permits the function USER
Specific to MS Access
none
PostgreSQL
Find the user name or user id.
The SQL standard permits the function USER
Specific to PostgreSQL
none
Oracle
Find the user name or user id.
The SQL standard permits the function USER
Specific to Oracle
The functions are user and uid
MS SQL Server
Find the user name or user id.
The SQL standard permits the function USER
Specific to MS SQL Server
When you are in a database that you own the answer is dbo (database owner).
If you USE someone else's database then you get a user id.
(the machine being used to connect to MySQL).
MySQL
Find the user name or user id.
The SQL standard permits the function USER
Specific to MySQL
The user() function include the user name and the name of the machine you are using.
In this case the perl script feeding the result page is on the same machine as the database so we get
localhost.
Sybase
Find the user name or user id.
The SQL standard permits the function USER
Specific to Sybase
When you are in a database that you own the answer is dbo (database owner).
If you USE someone else's database then you get a user id.
(the machine being used to connect to MySQL).
Mimer SQL
Find the user name or user id.
The SQL standard permits the function USER