| 質問   | 答え   | 
        
        |  学び始める Returns the ASCII value for the specific character  |  |  |  |  | 
|  学び始める Returns the length of a string (in characters)  |  |  =CHAR_LENGTH(text) |  |  | 
|  学び始める Concatenates two or more expressions together  |  |  |  |  | 
|  学び始める Concatenates two or more expressions together with a separator  |  |   CONCAT_WS(sep, arg1, arg2, ...)  |  |  | 
|  学び始める Returns the index position of a value in a list of values  |  |  |  |  | 
|  学び始める Returns the position of a string within A LIST OF strings  |  |   FIND_IN_SET(searched_string, s1, s2, s3, ...)  |  |  | 
|  学び始める Formats a number to a format like "#,###,###.##", rounded to a specified number of decimal places  |  |  |  |  | 
|  学び始める Inserts a string within a string at the specified position and for a certain number of characters  |  |   INSERT(text, position, n, s)   n − number of characters to replace |  |  | 
|  学び始める Returns the position of the first occurrence of a string in another string  |  |  |  |  | 
|  学び始める Converts a string to lower-case  |  |  =LOWER(text) |  |  | 
|  学び始める Extracts a number of characters from a string (starting from left)  |  |  |  |  | 
|  学び始める Returns the length of a string (in bytes)  |  |  |  |  | 
|  学び始める Returns the position of the first occurrence of a substring in a string  |  |  =POSITION(...) |  |  | 
|  学び始める Left-pads a string with another string, to a certain length  |  |  Corresponds Python 3 rjust() |  |  | 
|  学び始める Removes leading spaces from a string  |  |  |  |  | 
|  学び始める Repeats a string as many times as specified  |  |  |  |  | 
|  学び始める Replaces all occurrences of a substring within a string, with a new substring  |  |  Similar to Python's 3. |  |  | 
|  学び始める Reverses a string and returns the result  |  |  |  |  | 
|  学び始める Extracts a number of characters from a string (starting from right)  |  |  |  |  | 
|  学び始める Right-pads a string with another string, to a certain length  |  |  |  |  | 
|  学び始める Removes trailing spaces from a string  |  |  |  |  | 
|  学び始める Returns a string of the specified number of spaces.  |  |  |  |  | 
| 学び始める |  |  returns -1 or 0 or 1 |  |  | 
|  学び始める Extracts a substring from a string (starting at any position)  |  |   SUBSTRING(text, start, len)   =SUBSTR(...)=MID(...) |  |  | 
|  学び始める Returns a substring of a string before a specified number of DELIMITER occurs  |  |   SUBSTRING_INDEX(text, delimiter, quantity)  |  |  | 
|  学び始める Removes leading and trailing spaces from a string  |  |  |  |  | 
|  学び始める Converts a string to upper-case  |  |  =UPPER(text) |  |  | 
|  学び始める Adds a time/date interval to a date and then returns the date  |  |   ADDDATE(date/datetime, interval)   adddate(current_date(), INTERVAL 3 minute) |  |  | 
|  学び始める Adds a time interval to a time/datetime and then returns the time/datetime  |  |   ADDTIME(time/datetime, interval)  |  |  | 
| 学び始める |  |  =CURDATE() |  |  | 
| 学び始める |  |  =CURTIME() |  |  | 
|  学び始める Extracts the date part from a datetime expression  |  |  |  |  | 
|  学び始める Returns the number of days between two date values  |  |  |  |  | 
|  学び始める Adds a time/date interval to a date and then returns the date  |  |  |  |  | 
| 学び始める |  |   DATE_FORMAT(date, format_specifier)  |  |  | 
|  学び始める Subtracts a time/date interval from a date and then returns the date  |  |  |  |  | 
|  学び始める Returns the day of the month for a given date  |  |  |  |  | 
|  学び始める Returns the weekday NAME for a given date  |  |  |  |  | 
|  学び始める Returns the day of the month for a given date  |  |  |  |  | 
|  学び始める Returns the weekday number for a given date  |  |  |  |  | 
|  学び始める Returns the day of the year for a given date  |  |  |  |  | 
|  学び始める Extracts a part from a given date  |  |   EXTRACT(time_unit FROM date/time)  |  |  | 
|  学び始める Returns a date from a numeric datevalue  |  |  |  |  | 
|  学び始める Returns the hour part for a given date  |  |  |  |  | 
|  学び始める Extracts the last day of the month for a given date  |  |  |  |  | 
|  学び始める Returns the current date and time  |  |  LOCALTIMESTAMP(), localtime(), sysdate(), CURRENT_TIMESTAMP() |  |  | 
|  学び始める Creates and returns a date based on a year and a number of days value  |  |   MAKEDATE(year, minute, second)  |  |  | 
|  学び始める Creates and returns a time based on an hour, minute, and second value  |  |   MAKETIME(hour, minute, second)  |  |  | 
|  学び始める Returns the microsecond part of a time/datetime  |  |  |  |  | 
|  学び始める Returns the minute part of a time/datetime  |  |  |  |  | 
|  学び始める Returns the month part for a given date  |  |  |  |  | 
|  学び始める Returns the name of the month for a given date  |  |  |  |  | 
|  学び始める Adds a specified number of months to a period  |  |   PERIOD_ADD(period, number)    SELECT PERIOD_ADD(201703, 15); |  |  | 
|  学び始める Returns the difference between two periods  |  |   PERIOD_DIFF(period, number)    SELECT PERIOD_DIFF(1703, 1612); |  |  | 
|  学び始める Returns the quarter of the year for a given date value  |  |  |  |  | 
|  学び始める Returns the seconds part of a time/datetime  |  |  |  |  | 
|  学び始める Returns a time value based on the specified seconds  |  |  |  |  | 
|  学び始める Returns a date based on a string and a format  |  |   STR_TO_DATE(text, format_specifier)  |  |  | 
|  学び始める Subtracts a time/date interval from a date and then returns the date  |  |  |  |  | 
|  学び始める Subtracts a time interval from a datetime and then returns the time/datetime  |  |  |  |  | 
|  学び始める Extracts the time part from a given time/datetime  |  |  |  |  | 
|  学び始める Formats a time by a specified format  |  |   TIME_FORMAT(time, format_specifier)  |  |  | 
|  学び始める Converts a time value into seconds  |  |  |  |  | 
|  学び始める Returns the difference between two time/datetime expressions  |  |  |  |  | 
|  学び始める Returns a datetime value based on a date or datetime value  |  |   TIMESTAMP(date[time], [time])  |  |  | 
|  学び始める Returns the number of days between a date and date "0000-00-00"  |  |  |  |  | 
|  学び始める Returns the week number for a given date  |  |  |  |  | 
|  学び始める Returns the weekday number for a given date  |  |  |  |  | 
|  学び始める Returns the week number for a given date  |  |  |  |  | 
|  学び始める Returns the year part for a given date  |  |  |  |  | 
|  学び始める Returns the year and week number for a given date  |  |  |  |  | 
|  学び始める Returns the absolute value of a number  |  |  |  |  | 
|  学び始める Returns the arc cosine of a number  |  |  |  |  | 
|  学び始める Returns the arc sine of a number  |  |  |  |  | 
|  学び始める Returns the arc tangent of one or two numbers  |  |  |  |  | 
|  学び始める Returns the arc tangent of two numbers  |  |  |  |  | 
|  学び始める Returns the average value of an expression  |  |  |  |  | 
|  学び始める Returns the smallest integer value that is >= to a number  |  |  =CEIL(x) |  |  | 
|  学び始める Returns the cosine of a number  |  |  |  |  | 
|  学び始める Returns the cotangent of a number  |  |  |  |  | 
|  学び始める Returns the number of records returned by a select query  |  |  |  |  | 
|  学び始める Converts a value in radians to degrees  |  |  |  |  | 
|  学び始める Used for integer division  |  |  |  |  | 
|  学び始める Returns e raised to the power of a specified number  |  |  |  |  | 
|  学び始める Returns the largest integer value that is <= to a number  |  |  |  |  | 
|  学び始める Returns the greatest value of the list of arguments  |  |   GREATEST(arg1, arg2, ...)  |  |  | 
|  学び始める Returns the smallest value of the list of arguments  |  |  |  |  | 
|  学び始める Returns the natural logarithm of a number  |  |  |  |  | 
|  学び始める Returns the natural logarithm of a number, or the logarithm of a number to a specified base  |  |  wheras: LOG(x)=LN(x) |  |  | 
|  学び始める Returns the logarithm of a number to base 10  |  |  |  |  | 
|  学び始める Returns the logarithm of a number to base 2  |  |  |  |  | 
|  学び始める Returns the maximum value in a set of values  |  |  |  |  | 
|  学び始める Returns the minimum value in a set of values  |  |  |  |  | 
|  学び始める Returns the remainder of a number divided by another number  |  |  =MOD(x,y)=x%y |  |  | 
| 学び始める |  |  |  |  | 
|  学び始める Returns the value of a number raised to the power of another number  |  |  POW(x,y) |  |  | 
|  学び始める Converts a degree value into radians  |  |  |  |  | 
|  学び始める Returns a random number x, where x∈⟨0;1)  |  |  the same as Python 3 random. random() |  |  | 
|  学び始める Rounds a number to a specified number of decimal places  |  |  |  |  | 
|  学び始める Returns the sign of a number  |  |  |  |  | 
|  学び始める Returns the sine of a number  |  |  |  |  | 
|  学び始める Returns the square root of a number  |  |  |  |  | 
|  学び始める Calculates the sum of a set of values  |  |  |  |  | 
|  学び始める Returns the tangent of a number  |  |  |  |  | 
|  学び始める Truncates a number to the specified number of decimal places  |  |  |  |  | 
|  学び始める Returns a binary representation of a number  |  |  Attention it AIN'T the same as BINARY() |  |  | 
|  学び始める Converts a value to a binary string  |  |  |  |  | 
|  学び始める Converts a value (of any type) into a specified datatype  |  |  |  |  | 
|  学び始める Returns the first non-null value in a list  |  |  |  |  | 
|  学び始める Returns the unique connection ID for the current connection  |  |  |  |  | 
|  学び始める Converts a number from one numeric base system to another  |  |  |  |  | 
|  学び始める Converts a value into the specified datatype or character set  |  |  |  |  | 
|  学び始める Returns the name of the current database  |  |  |  |  | 
|  学び始める Returns a value if a condition is TRUE, or another value if a condition is FALSE  |  |   IF(condition, value1, value2)  |  |  | 
|  学び始める Return a specified value if the expression is NULL, otherwise return the expression  |  |  |  |  | 
|  学び始める Returns 1 or 0 depending on whether an expression is NULL  |  |  |  |  | 
|  学び始める Returns the AUTO_INCREMENT id of the last row that has been inserted or updated in a table  |  |  |  |  | 
|  学び始める Compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned  |  |  |  |  | 
|  学び始める Returns the current MySQL user name and host name  |  |  =CURRENT_USER()=SYSTEM_USER=SESSION_USER |  |  | 
|  学び始める Returns the current version of the MySQL database  |  |  |  |  | 
|  学び始める This will be used to select a database in the MySQL workarea.  |  |  |  |  | 
|  学び始める Lists out the databases that are accessible by the MySQL DBMS.  |  |  |  |  | 
|  学び始める Shows the tables in the database once a database has been selected with the use command.  |  |  |  |  | 
|  学び始める Shows the attributes, types of attributes, key information, whether NULL is permitted, defaults, and other information for a table.  |  |   SHOW COLUMNS FROM tablename;  |  |  | 
|  学び始める Presents the details of all indexes on the table, including the PRIMARY KEY.  |  |   SHOW INDEX FROM tablename  |  |  | 
|  学び始める Reports details of the MySQL DBMS performance and statistics.  |  |   SHOW TABLE STATUS LIKE tablename;  |  |  | 
|  学び始める A FIXED length string (can contain letters, numbers, and special characters). The size parameter specifies the column length in characters - can be from 0 to 255. Default is 1  |  |  |  |  | 
|  学び始める A VARIABLE length string (can contain letters, numbers, and special characters). The size parameter specifies the maximum column length in characters - can be from 0 to 65535  |  |  |  |  | 
|  学び始める Equal to CHAR(), but stores binary byte strings. The size parameter specifies the column length in bytes. Default is 1  |  |  |  |  | 
|  学び始める Equal to VARCHAR(), but stores binary byte strings. The size parameter specifies the maximum column length in bytes.  |  |  |  |  | 
|  学び始める For BLOBs (Binary Large OBjects). Max length: 255 bytes  |  |  |  |  | 
|  学び始める Holds a string with a maximum length of 255 characters  |  |  |  |  | 
|  学び始める Holds a string with a maximum length of 65,535 bytes  |  |  |  |  | 
|  学び始める For BLOBs (Binary Large OBjects). Holds up to 65,535 bytes of data  |  |  |  |  | 
|  学び始める Holds a string with a maximum length of 16,777,215 characters  |  |  |  |  | 
|  学び始める For BLOBs (Binary Large OBjects). Holds up to 16,777,215 bytes of data  |  |  |  |  | 
|  学び始める Holds a string with a maximum length of 4,294,967,295 characters  |  |  |  |  | 
|  学び始める For BLOBs (Binary Large OBjects). Holds up to 4,294,967,295 bytes of data  |  |  |  |  | 
|   A string object that can have only one value, chosen from a list of possible values.   You can list up to 65535 values in an ENUM list. If a value is inserted that is not in the list, a blank value will be inserted. The values are sorted in the order you enter them学び始める |  |   ENUM(val1, val2, val3, ...)  |  |  | 
|  学び始める A string object that can have 0 or more values, chosen from a list of possible values. You can list up to 64 values in a SET list  |  |   SET(val1, val2, val3, ...)  |  |  | 
|  学び始める A bit-value type. The number of bits per value is specified in size. The size parameter can hold a value from 1 to 64. The default value for size is 1.  |  |  |  |  | 
|  学び始める A very small integer. Signed range is from -128 to 127. Unsigned range is from 0 to 255. The size parameter specifies the maximum display width (which is 255)  |  |  |  |  | 
|  学び始める Zero is considered as false, nonzero values are considered as true.  |  |  |  |  | 
| 学び始める |  |  |  |  | 
|  学び始める A small integer. Signed range is from -32768 to 32767. Unsigned range is from 0 to 65535. The size parameter specifies the maximum display width (which is 255)  |  |  |  |  | 
|  学び始める A medium integer. Signed range is from -8388608 to 8388607. Unsigned range is from 0 to 16777215. The size parameter specifies the maximum display width (which is 255)  |  |  |  |  | 
|  学び始める A medium integer. Signed range is from -2147483648 to 2147483647. Unsigned range is from 0 to 4294967295. The size parameter specifies the maximum display width (which is 255)  |  |  |  |  | 
| 学び始める |  |  |  |  | 
|  学び始める A large integer. Signed range is from -9223372036854775808 to 9223372036854775807. Unsigned range is from 0 to 18446744073709551615. The size parameter specifies the maximum display width (which is 255)  |  |  |  |  | 
|  学び始める A floating point number. The total number of digits is specified in size. The number of digits after the decimal point is specified in the d parameter. This syntax is deprecated in MySQL 8.0.17, and it will be removed in future MySQL versions  |  |  |  |  | 
|  学び始める A floating point number. MySQL uses the p value to determine whether to use FLOAT or DOUBLE for the resulting data type. If p is from 0 to 24, the data type becomes FLOAT(). If p is from 25 to 53, the data type becomes DOUBLE()  |  |  |  |  | 
|  学び始める A normal-size floating point number. The total number of digits is specified in size. The number of digits after the decimal point is specified in the d parameter  |  |  |  |  | 
|   An exact fixed-point number. The total number of digits is specified in size.   The number of digits after the decimal point is specified in the d parameter. The maximum number for size is 65. The maximum number for d is 30. The default value for size is 10. The default value for d is 0.学び始める |  |  |  |  | 
| 学び始める |  |  |  |  | 
|  学び始める To disable negative numbers.  |  |  |  |  | 
|  学び始める To add leading zeros, which make all numbers in the column sustain the same length.  |  |  |  |  | 
|  学び始める A date. Format: YYYY-MM-DD. The supported range is from '1000-01-01' to '9999-12-31'  |  |  |  |  | 
|   A date and time combination. Format: YYYY-MM-DD hh: mm: ss.   The supported range is from '1000-01-01 00:00:00' to '9999-12-31 23:59:59'. Adding DEFAULT and ON UPDATE in the column definition to get automatic initialization and updating to the current date and time学び始める |  |  |  |  | 
|   A timestamp. TIMESTAMP values are stored as the number of seconds since the Unix epoch ('1970-01-01 00:00:00' UTC). Format: YYYY-MM-DD hh: mm: ss.   The supported range is from '1970-01-01 00:00:01' UTC to '2038-01-09 03:14:07' UTC.学び始める |  |  |  |  | 
|  学び始める A time. Format: hh: mm: ss. The supported range is from '-838:59:59' to '838:59:59'  |  |  |  |  | 
|  学び始める A year in four-digit format. Values allowed in four-digit format: 1901 to 2155, and 0000.  |  |  |  |  |