Movatterモバイル変換


[0]ホーム

URL:


Menu
×
Sign In
+1 Get Certified For Teachers Spaces Plus Get Certified For Teachers Spaces Plus
   ❮     
     ❯   

MySQL Tutorial

MySQL HOMEMySQL IntroMySQL RDBMS

MySQL SQL

MySQL SQLMySQL SELECTMySQL WHEREMySQL AND, OR, NOTMySQL ORDER BYMySQL INSERT INTOMySQL NULL ValuesMySQL UPDATEMySQL DELETEMySQL LIMITMySQL MIN and MAXMySQL COUNT, AVG, SUMMySQL LIKEMySQL WildcardsMySQL INMySQL BETWEENMySQL AliasesMySQL JoinsMySQL INNER JOINMySQL LEFT JOINMySQL RIGHT JOINMySQL CROSS JOINMySQL Self JoinMySQL UNIONMySQL GROUP BYMySQL HAVINGMySQL EXISTSMySQL ANY, ALLMySQL INSERT SELECTMySQL CASEMySQL Null FunctionsMySQL CommentsMySQL Operators

MySQL Database

MySQL Create DBMySQL Drop DBMySQL Create TableMySQL Drop TableMySQL Alter TableMySQL ConstraintsMySQL Not NullMySQL UniqueMySQL Primary KeyMySQL Foreign KeyMySQL CheckMySQL DefaultMySQL Create IndexMySQL Auto IncrementMySQL DatesMySQL Views

MySQL References

MySQL Data TypesMySQL Functions
String FunctionsASCIICHAR_LENGTHCHARACTER_LENGTHCONCATCONCAT_WSFIELDFIND_IN_SETFORMATINSERTINSTRLCASELEFTLENGTHLOCATELOWERLPADLTRIMMIDPOSITIONREPEATREPLACEREVERSERIGHTRPADRTRIMSPACESTRCMPSUBSTRSUBSTRINGSUBSTRING_INDEXTRIMUCASEUPPERNumeric FunctionsABSACOSASINATANATAN2AVGCEILCEILINGCOSCOTCOUNTDEGREESDIVEXPFLOORGREATESTLEASTLNLOGLOG10LOG2MAXMINMODPIPOWPOWERRADIANSRANDROUNDSIGNSINSQRTSUMTANTRUNCATEDate FunctionsADDDATEADDTIMECURDATECURRENT_DATECURRENT_TIMECURRENT_TIMESTAMPCURTIMEDATEDATEDIFFDATE_ADDDATE_FORMATDATE_SUBDAYDAYNAMEDAYOFMONTHDAYOFWEEKDAYOFYEAREXTRACTFROM_DAYSHOURLAST_DAYLOCALTIMELOCALTIMESTAMPMAKEDATEMAKETIMEMICROSECONDMINUTEMONTHMONTHNAMENOWPERIOD_ADDPERIOD_DIFFQUARTERSECONDSEC_TO_TIMESTR_TO_DATESUBDATESUBTIMESYSDATETIMETIME_FORMATTIME_TO_SECTIMEDIFFTIMESTAMPTO_DAYSWEEKWEEKDAYWEEKOFYEARYEARYEARWEEKAdvanced FunctionsBINBINARYCASECASTCOALESCECONNECTION_IDCONVCONVERTCURRENT_USERDATABASEIFIFNULLISNULLLAST_INSERT_IDNULLIFSESSION_USERSYSTEM_USERUSERVERSION

MySQL Examples

MySQL ExamplesMySQL EditorMySQL QuizMySQL ExercisesMySQL SyllabusMySQL Study PlanMySQL Certificate


MySQLSESSION_USER() Function

❮ MySQL Functions

Example

Return the current user name and host name for the MySQL connection:

SELECT SESSION_USER();
Try it Yourself »

Definition and Usage

The SESSION_USER() function returns the current user name and host name for the MySQL connection.

Note: This function is equal to theSYSTEM_USER() and theUSER() function.

Syntax

SESSION_USER()

Technical Details

Works in:From MySQL 4.0

❮ MySQL Functions

 
Track your progress - it's free!
 

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted ourterms of use,cookie and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved.W3Schools is Powered by W3.CSS.


[8]ページ先頭

©2009-2025 Movatter.jp