Movatterモバイル変換


[0]ホーム

URL:


Menu
×
See More 
Sign In
+1 Get Certified Upgrade Teachers Spaces Get Certified Upgrade Teachers Spaces
   ❮     
     ❯   

SQL Tutorial

SQL HOMESQL IntroSQL SyntaxSQL SelectSQL Select DistinctSQL WhereSQL Order BySQL AndSQL OrSQL NotSQL Insert IntoSQL Null ValuesSQL UpdateSQL DeleteSQL Select TopSQL Aggregate FunctionsSQL Min and MaxSQL CountSQL SumSQL AvgSQL LikeSQL WildcardsSQL InSQL BetweenSQL AliasesSQL JoinsSQL Inner JoinSQL Left JoinSQL Right JoinSQL Full JoinSQL Self JoinSQL UnionSQL Union AllSQL Group BySQL HavingSQL ExistsSQL Any, AllSQL Select IntoSQL Insert Into SelectSQL CaseSQL Null FunctionsSQL Stored ProceduresSQL CommentsSQL Operators

SQL Database

SQL Create DBSQL Drop DBSQL Backup DBSQL Create TableSQL Drop TableSQL Alter TableSQL ConstraintsSQL Not NullSQL UniqueSQL Primary KeySQL Foreign KeySQL CheckSQL DefaultSQL IndexSQL Auto IncrementSQL DatesSQL ViewsSQL InjectionSQL HostingSQL Data Types

SQL References

SQL KeywordsMySQL Functions
String Functions:ASCIICHAR_LENGTHCHARACTER_LENGTHCONCATCONCAT_WSFIELDFIND_IN_SETFORMATINSERTINSTRLCASELEFTLENGTHLOCATELOWERLPADLTRIMMIDPOSITIONREPEATREPLACEREVERSERIGHTRPADRTRIMSPACESTRCMPSUBSTRSUBSTRINGSUBSTRING_INDEXTRIMUCASEUPPERNumeric Functions:ABSACOSASINATANATAN2AVGCEILCEILINGCOSCOTCOUNTDEGREESDIVEXPFLOORGREATESTLEASTLNLOGLOG10LOG2MAXMINMODPIPOWPOWERRADIANSRANDROUNDSIGNSINSQRTSUMTANTRUNCATEDate Functions:ADDDATEADDTIMECURDATECURRENT_DATECURRENT_TIMECURRENT_TIMESTAMPCURTIMEDATEDATEDIFFDATE_ADDDATE_FORMATDATE_SUBDAYDAYNAMEDAYOFMONTHDAYOFWEEKDAYOFYEAREXTRACTFROM_DAYSHOURLAST_DAYLOCALTIMELOCALTIMESTAMPMAKEDATEMAKETIMEMICROSECONDMINUTEMONTHMONTHNAMENOWPERIOD_ADDPERIOD_DIFFQUARTERSECONDSEC_TO_TIMESTR_TO_DATESUBDATESUBTIMESYSDATETIMETIME_FORMATTIME_TO_SECTIMEDIFFTIMESTAMPTO_DAYSWEEKWEEKDAYWEEKOFYEARYEARYEARWEEKAdvanced Functions:BINBINARYCASECASTCOALESCECONNECTION_IDCONVCONVERTCURRENT_USERDATABASEIFIFNULLISNULLLAST_INSERT_IDNULLIFSESSION_USERSYSTEM_USERUSERVERSION
SQL Server FunctionsMS Access FunctionsSQL Quick Ref

SQL Examples

SQL ExamplesSQL EditorSQL QuizSQL ExercisesSQL ServerSQL SyllabusSQL Study PlanSQL BootcampSQL CertificateSQL Training

MS AccessFunctions


MS Access has many built-in functions.

This reference contains the string, numeric, and date functions in MS Access.


MS Access String Functions

FunctionDescription
AscReturns the ASCII value for the specific character
ChrReturns the character for the specified ASCII number code
Concat with &Adds two or more strings together
CurDirReturns the full path for a specified drive
FormatFormats a value with the specified format
InStrGets the position of the first occurrence of a string in another
InstrRevGets the position of the first occurrence of a string in another, from the end of string
LCaseConverts a string to lower-case
LeftExtracts a number of characters from a string (starting from left)
LenReturns the length of a string
LTrimRemoves leading spaces from a string
MidExtracts some characters from a string (starting at any position)
ReplaceReplaces a substring within a string, with another substring, a specified number of times
RightExtracts a number of characters from a string (starting from right)
RTrimRemoves trailing spaces from a string
SpaceReturns a string of the specified number of space characters
SplitSplits a string into an array of substrings
StrReturns a number as string
StrCompCompares two strings
StrConvReturns a converted string
StrReverseReverses a string and returns the result
TrimRemoves both leading and trailing spaces from a string
UCaseConverts a string to upper-case


MS Access Numeric Functions

FunctionDescription
AbsReturns the absolute value of a number
AtnReturns the arc tangent of a number
AvgReturns the average value of an expression
CosReturns the cosine of an angle
CountReturns the number of records returned by a select query
ExpReturns e raised to the power of a specified number
FixReturns the integer part of a number
FormatFormats a numeric value with the specified format
IntReturns the integer part of a number
MaxReturns the maximum value in a set of values
MinReturns the minimum value in a set of values
RandomizeInitializes the random number generator (used by Rnd()) with a seed
RndReturns a random number
RoundRounds a number to a specified number of decimal places
SgnReturns the sign of a number
SqrReturns the square root of a number
SumCalculates the sum of a set of values
ValReads a string and returns the numbers found in the string

MS Access Date Functions

FunctionDescription
DateReturns the current system date
DateAddAdds a time/date interval to a date and then returns the date
DateDiffReturns the difference between two dates
DatePartReturns a specified part of a date (as an integer)
DateSerialReturns a date from the specified parts (year, month, and day values)
DateValueReturns a date based on a string
DayReturns the day of the month for a given date
FormatFormats a date value with the specified format
HourReturns the hour part of a time/datetime
MinuteReturns the minute part of a time/datetime
MonthReturns the month part of a given date
MonthNameReturns the name of the month based on a number
NowReturns the current date and time based on the computer's system date and time
SecondReturns the seconds part of a time/datetime
TimeReturns the current system time
TimeSerialReturns a time from the specified parts (hour, minute, and second value)
TimeValueReturns a time based on a string
WeekdayReturns the weekday number for a given date
WeekdayNameReturns the weekday name based on a number
YearReturns the year part of a given date

MS Access Some Other Functions

FunctionDescription
CurrentUserReturns the name of the current database user
EnvironReturns a string that contains the value of an operating system environment variable
IsDateChecks whether an expression can be converted to a date
IsNullChecks whether an expression contains Null (no data)
IsNumericChecks whether an expression is a valid number


×

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,cookies andprivacy policy.

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


[8]ページ先頭

©2009-2025 Movatter.jp