{"id":162,"date":"2018-12-06T10:16:29","date_gmt":"2018-12-06T10:16:29","guid":{"rendered":"https:\/\/barkhane.com\/sql\/2018\/12\/06\/mysql-functions\/"},"modified":"2024-03-03T18:01:36","modified_gmt":"2024-03-03T18:01:36","slug":"mysql-functions","status":"publish","type":"post","link":"https:\/\/barkhane.com\/sql\/mysql-functions\/","title":{"rendered":"MySQL Functions"},"content":{"rendered":"<p class=\"intro\">MySQL has many built-in MySQL Functions.<\/p>\n<p class=\"intro\">This reference contains string, numeric, date, and some advanced functions in MySQL.<\/p>\n<h2>MySQL String Functions<\/h2>\n<table class=\"w3-table-all notranslate\">\n<tbody>\n<tr>\n<th><strong>Function<\/strong><\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td><strong>ASCII<\/strong><\/td>\n<td>Returns the ASCII value for the specific character<\/td>\n<\/tr>\n<tr>\n<td><strong>CHAR_LENGTH<\/strong><\/td>\n<td>Returns the length of a string (in characters)<\/td>\n<\/tr>\n<tr>\n<td><strong>CHARACTER_LENGTH<\/strong><\/td>\n<td>Returns the length of a string (in characters)<\/td>\n<\/tr>\n<tr>\n<td><strong>CONCAT<\/strong><\/td>\n<td>Adds two or more expressions together<\/td>\n<\/tr>\n<tr>\n<td><strong>CONCAT_WS<\/strong><\/td>\n<td>Adds two or more expressions together with a separator<\/td>\n<\/tr>\n<tr>\n<td><strong>FIELD<\/strong><\/td>\n<td>Returns the index position of a value in a list of values<\/td>\n<\/tr>\n<tr>\n<td><strong>FIND_IN_SET<\/strong><\/td>\n<td>Returns the position of a string within a list of strings<\/td>\n<\/tr>\n<tr>\n<td><strong>FORMAT<\/strong><\/td>\n<td>Formats a number to a format like \\&#8221;#,###,###.##\\&#8221;, rounded to a specified number of decimal places<\/td>\n<\/tr>\n<tr>\n<td><strong>INSERT<\/strong><\/td>\n<td>Inserts a string within a string at the specified position and for a certain number of characters<\/td>\n<\/tr>\n<tr>\n<td><strong>INSTR<\/strong><\/td>\n<td>Returns the position of the first occurrence of a string in another string<\/td>\n<\/tr>\n<tr>\n<td><strong>LCASE<\/strong><\/td>\n<td>Converts a string to lower-case<\/td>\n<\/tr>\n<tr>\n<td><strong>LEFT<\/strong><\/td>\n<td>Extracts a number of characters from a string (starting from left)<\/td>\n<\/tr>\n<tr>\n<td><strong>LENGTH<\/strong><\/td>\n<td>Returns the length of a string (in bytes)<\/td>\n<\/tr>\n<tr>\n<td><strong>LOCATE<\/strong><\/td>\n<td>Returns the position of the first occurrence of a substring in a string<\/td>\n<\/tr>\n<tr>\n<td><strong>LOWER<\/strong><\/td>\n<td>Converts a string to lower-case<\/td>\n<\/tr>\n<tr>\n<td><strong>LPAD<\/strong><\/td>\n<td>Left-pads a string with another string, to a certain length<\/td>\n<\/tr>\n<tr>\n<td><strong>LTRIM<\/strong><\/td>\n<td>Removes leading spaces from a string<\/td>\n<\/tr>\n<tr>\n<td><strong>MID<\/strong><\/td>\n<td>Extracts a substring from a string (starting at any position)<\/td>\n<\/tr>\n<tr>\n<td><strong>POSITION<\/strong><\/td>\n<td>Returns the position of the first occurrence of a substring in a string<\/td>\n<\/tr>\n<tr>\n<td><strong>REPEAT<\/strong><\/td>\n<td>Repeats a string as many times as specified<\/td>\n<\/tr>\n<tr>\n<td><strong>REPLACE<\/strong><\/td>\n<td>Replaces all occurrences of a substring within a string, with a new substring<\/td>\n<\/tr>\n<tr>\n<td><strong>REVERSE<\/strong><\/td>\n<td>Reverses a string and returns the result<\/td>\n<\/tr>\n<tr>\n<td><strong>RIGHT<\/strong><\/td>\n<td>Extracts a number of characters from a string (starting from right)<\/td>\n<\/tr>\n<tr>\n<td><strong>RPAD<\/strong><\/td>\n<td>Right-pads a string with another string, to a certain length<\/td>\n<\/tr>\n<tr>\n<td><strong>RTRIM<\/strong><\/td>\n<td>Removes trailing spaces from a string<\/td>\n<\/tr>\n<tr>\n<td><strong>SPACE<\/strong><\/td>\n<td>Returns a string of the specified number of space characters<\/td>\n<\/tr>\n<tr>\n<td><strong>STRCMP<\/strong><\/td>\n<td>Compares two strings<\/td>\n<\/tr>\n<tr>\n<td><strong>SUBSTR<\/strong><\/td>\n<td>Extracts a substring from a string (starting at any position)<\/td>\n<\/tr>\n<tr>\n<td><strong>SUBSTRING<\/strong><\/td>\n<td>Extracts a substring from a string (starting at any position)<\/td>\n<\/tr>\n<tr>\n<td><strong>SUBSTRING_INDEX<\/strong><\/td>\n<td>Returns a substring of a string before a specified number of delimiter occurs<\/td>\n<\/tr>\n<tr>\n<td><strong>TRIM<\/strong><\/td>\n<td>Removes leading and trailing spaces from a string<\/td>\n<\/tr>\n<tr>\n<td><strong>UCASE<\/strong><\/td>\n<td>Converts a string to upper-case<\/td>\n<\/tr>\n<tr>\n<td><strong>UPPER<\/strong><\/td>\n<td>Converts a string to upper-case<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<div id=\"midcontentadcontainer\">\n<div id=\"snhb-mid_content-0\"><\/div>\n<\/div>\n<hr \/>\n<h2>MySQL Numeric Functions<\/h2>\n<table class=\"w3-table-all notranslate\">\n<tbody>\n<tr>\n<th><strong>Function<\/strong><\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td><strong>ABS<\/strong><\/td>\n<td>Returns the absolute value of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>ACOS<\/strong><\/td>\n<td>Returns the arc cosine of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>ASIN<\/strong><\/td>\n<td>Returns the arc sine of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>ATAN<\/strong><\/td>\n<td>Returns the arc tangent of one or two numbers<\/td>\n<\/tr>\n<tr>\n<td><strong>ATAN2<\/strong><\/td>\n<td>Returns the arc tangent of two numbers<\/td>\n<\/tr>\n<tr>\n<td><strong>AVG<\/strong><\/td>\n<td>Returns the average value of an expression<\/td>\n<\/tr>\n<tr>\n<td><strong>CEIL<\/strong><\/td>\n<td>Returns the smallest integer value that is &gt;= to a number<\/td>\n<\/tr>\n<tr>\n<td><strong>CEILING<\/strong><\/td>\n<td>Returns the smallest integer value that is &gt;= to a number<\/td>\n<\/tr>\n<tr>\n<td><strong>COS<\/strong><\/td>\n<td>Returns the cosine of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>COT<\/strong><\/td>\n<td>Returns the cotangent of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>COUNT<\/strong><\/td>\n<td>Returns the number of records returned by a select query<\/td>\n<\/tr>\n<tr>\n<td><strong>DEGREES<\/strong><\/td>\n<td>Converts a value in radians to degrees<\/td>\n<\/tr>\n<tr>\n<td><strong>DIV<\/strong><\/td>\n<td>Used for integer division<\/td>\n<\/tr>\n<tr>\n<td><strong>EXP<\/strong><\/td>\n<td>Returns e raised to the power of a specified number<\/td>\n<\/tr>\n<tr>\n<td><strong>FLOOR<\/strong><\/td>\n<td>Returns the largest integer value that is &lt;= to a number<\/td>\n<\/tr>\n<tr>\n<td><strong>GREATEST<\/strong><\/td>\n<td>Returns the greatest value of the list of arguments<\/td>\n<\/tr>\n<tr>\n<td><strong>LEAST<\/strong><\/td>\n<td>Returns the smallest value of the list of arguments<\/td>\n<\/tr>\n<tr>\n<td><strong>LN<\/strong><\/td>\n<td>Returns the natural logarithm of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>LOG<\/strong><\/td>\n<td>Returns the natural logarithm of a number, or the logarithm of a number to a specified base<\/td>\n<\/tr>\n<tr>\n<td><strong>LOG10<\/strong><\/td>\n<td>Returns the natural logarithm of a number to base 10<\/td>\n<\/tr>\n<tr>\n<td><strong>LOG2<\/strong><\/td>\n<td>Returns the natural logarithm of a number to base 2<\/td>\n<\/tr>\n<tr>\n<td><strong>MAX<\/strong><\/td>\n<td>Returns the maximum value in a set of values<\/td>\n<\/tr>\n<tr>\n<td><strong>MIN<\/strong><\/td>\n<td>Returns the minimum value in a set of values<\/td>\n<\/tr>\n<tr>\n<td><strong>MOD<\/strong><\/td>\n<td>Returns the remainder of a number divided by another number<\/td>\n<\/tr>\n<tr>\n<td><strong>PI<\/strong><\/td>\n<td>Returns the value of PI<\/td>\n<\/tr>\n<tr>\n<td><strong>POW<\/strong><\/td>\n<td>Returns the value of a number raised to the power of another number<\/td>\n<\/tr>\n<tr>\n<td><strong>POWER<\/strong><\/td>\n<td>Returns the value of a number raised to the power of another number<\/td>\n<\/tr>\n<tr>\n<td><strong>RADIANS<\/strong><\/td>\n<td>Converts a degree value into radians<\/td>\n<\/tr>\n<tr>\n<td><strong>RAND<\/strong><\/td>\n<td>Returns a random number<\/td>\n<\/tr>\n<tr>\n<td><strong>ROUND<\/strong><\/td>\n<td>Rounds a number to a specified number of decimal places<\/td>\n<\/tr>\n<tr>\n<td><strong>SIGN<\/strong><\/td>\n<td>Returns the sign of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>SIN<\/strong><\/td>\n<td>Returns the sine of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>SQRT<\/strong><\/td>\n<td>Returns the square of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>SUM<\/strong><\/td>\n<td>Calculates the sum of a set of values<\/td>\n<\/tr>\n<tr>\n<td><strong>TAN<\/strong><\/td>\n<td>Returns the tangent of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>TRUNCATE<\/strong><\/td>\n<td>Truncates a number to the specified number of decimal places<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>MySQL Date Functions<\/h2>\n<table class=\"w3-table-all notranslate\">\n<tbody>\n<tr>\n<th><strong>Function<\/strong><\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td><strong>ADDDATE<\/strong><\/td>\n<td>Adds a time\/date interval to a date and then returns the date<\/td>\n<\/tr>\n<tr>\n<td><strong>ADDTIME<\/strong><\/td>\n<td>Adds a time interval to a time\/datetime and then returns the time\/datetime<\/td>\n<\/tr>\n<tr>\n<td><strong>CURDATE<\/strong><\/td>\n<td>Returns the current date<\/td>\n<\/tr>\n<tr>\n<td><strong>CURRENT_DATE<\/strong><\/td>\n<td>Returns the current date<\/td>\n<\/tr>\n<tr>\n<td><strong>CURRENT_TIME<\/strong><\/td>\n<td>Returns the current time<\/td>\n<\/tr>\n<tr>\n<td><strong>CURRENT_TIMESTAMP<\/strong><\/td>\n<td>Returns the current date and time<\/td>\n<\/tr>\n<tr>\n<td><strong>CURTIME<\/strong><\/td>\n<td>Returns the current time<\/td>\n<\/tr>\n<tr>\n<td><strong>DATE<\/strong><\/td>\n<td>Extracts the date part from a datetime expression<\/td>\n<\/tr>\n<tr>\n<td><strong>DATEDIFF<\/strong><\/td>\n<td>Returns the number of days between two date values<\/td>\n<\/tr>\n<tr>\n<td><strong>DATE_ADD<\/strong><\/td>\n<td>Adds a time\/date interval to a date and then returns the date<\/td>\n<\/tr>\n<tr>\n<td><strong>DATE_FORMAT<\/strong><\/td>\n<td>Formats a date<\/td>\n<\/tr>\n<tr>\n<td><strong>DATE_SUB<\/strong><\/td>\n<td>Subtracts a time\/date interval from a date and then returns the date<\/td>\n<\/tr>\n<tr>\n<td><strong>DAY<\/strong><\/td>\n<td>Returns the day of the month for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>DAYNAME<\/strong><\/td>\n<td>Returns the weekday name for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>DAYOFMONTH<\/strong><\/td>\n<td>Returns the day of the month for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>DAYOFWEEK<\/strong><\/td>\n<td>Returns the weekday index for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>DAYOFYEAR<\/strong><\/td>\n<td>Returns the day of the year for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>EXTRACT<\/strong><\/td>\n<td>Extracts a part from a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>FROM_DAYS<\/strong><\/td>\n<td>Returns a date from a numeric datevalue<\/td>\n<\/tr>\n<tr>\n<td><strong>HOUR<\/strong><\/td>\n<td>Returns the hour part for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>LAST_DAY<\/strong><\/td>\n<td>Extracts the last day of the month for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>LOCALTIME<\/strong><\/td>\n<td>Returns the current date and time<\/td>\n<\/tr>\n<tr>\n<td><strong>LOCALTIMESTAMP<\/strong><\/td>\n<td>Returns the current date and time<\/td>\n<\/tr>\n<tr>\n<td><strong>MAKEDATE<\/strong><\/td>\n<td>Creates and returns a date based on a year and a number of days value<\/td>\n<\/tr>\n<tr>\n<td><strong>MAKETIME<\/strong><\/td>\n<td>Creates and returns a time based on an hour, minute, and second value<\/td>\n<\/tr>\n<tr>\n<td><strong>MICROSECOND<\/strong><\/td>\n<td>Returns the microsecond part of a time\/datetime<\/td>\n<\/tr>\n<tr>\n<td><strong>MINUTE<\/strong><\/td>\n<td>Returns the minute part of a time\/datetime<\/td>\n<\/tr>\n<tr>\n<td><strong>MONTH<\/strong><\/td>\n<td>Returns the month part for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>MONTHNAME<\/strong><\/td>\n<td>Returns the name of the month for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>NOW<\/strong><\/td>\n<td>Returns the current date and time<\/td>\n<\/tr>\n<tr>\n<td><strong>PERIOD_ADD<\/strong><\/td>\n<td>Adds a specified number of months to a period<\/td>\n<\/tr>\n<tr>\n<td><strong>PERIOD_DIFF<\/strong><\/td>\n<td>Returns the difference between two periods<\/td>\n<\/tr>\n<tr>\n<td><strong>QUARTER<\/strong><\/td>\n<td>Returns the quarter of the year for a given date value<\/td>\n<\/tr>\n<tr>\n<td><strong>SECOND<\/strong><\/td>\n<td>Returns the seconds part of a time\/datetime<\/td>\n<\/tr>\n<tr>\n<td><strong>SEC_TO_TIME<\/strong><\/td>\n<td>Returns a time value based on the specified seconds<\/td>\n<\/tr>\n<tr>\n<td><strong>STR_TO_DATE<\/strong><\/td>\n<td>Returns a date based on a string and a format<\/td>\n<\/tr>\n<tr>\n<td><strong>SUBDATE<\/strong><\/td>\n<td>Subtracts a time\/date interval from a date and then returns the date<\/td>\n<\/tr>\n<tr>\n<td><strong>SUBTIME<\/strong><\/td>\n<td>Subtracts a time interval from a datetime and then returns the time\/datetime<\/td>\n<\/tr>\n<tr>\n<td><strong>SYSDATE<\/strong><\/td>\n<td>Returns the current date and time<\/td>\n<\/tr>\n<tr>\n<td><strong>TIME<\/strong><\/td>\n<td>Extracts the time part from a given time\/datetime<\/td>\n<\/tr>\n<tr>\n<td><strong>TIME_FORMAT<\/strong><\/td>\n<td>Formats a time by a specified format<\/td>\n<\/tr>\n<tr>\n<td><strong>TIME_TO_SEC<\/strong><\/td>\n<td>Converts a time value into seconds<\/td>\n<\/tr>\n<tr>\n<td><strong>TIMEDIFF<\/strong><\/td>\n<td>Returns the difference between two time\/datetime expressions<\/td>\n<\/tr>\n<tr>\n<td><strong>TIMESTAMP<\/strong><\/td>\n<td>Returns a datetime value based on a date or datetime value<\/td>\n<\/tr>\n<tr>\n<td><strong>TO_DAYS<\/strong><\/td>\n<td>Returns the number of days between a date and date \\&#8221;0000-00-00\\&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>WEEK<\/strong><\/td>\n<td>Returns the week number for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>WEEKDAY<\/strong><\/td>\n<td>Returns the weekday number for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>WEEKOFYEAR<\/strong><\/td>\n<td>Returns the week number for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>YEAR<\/strong><\/td>\n<td>Returns the year part for a given date<\/td>\n<\/tr>\n<tr>\n<td><strong>YEARWEEK<\/strong><\/td>\n<td>Returns the year and week number for a given date<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>MySQL Advanced Functions<\/h2>\n<table class=\"w3-table-all notranslate\">\n<tbody>\n<tr>\n<th><strong>Function<\/strong><\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td><strong>BIN<\/strong><\/td>\n<td>Returns a binary representation of a number<\/td>\n<\/tr>\n<tr>\n<td><strong>BINARY<\/strong><\/td>\n<td>Converts a value to a binary string<\/td>\n<\/tr>\n<tr>\n<td><strong>CASE<\/strong><\/td>\n<td>Goes through conditions and return a value when the first condition is met<\/td>\n<\/tr>\n<tr>\n<td><strong>CAST<\/strong><\/td>\n<td>Converts a value (of any type) into a specified datatype<\/td>\n<\/tr>\n<tr>\n<td><strong>COALESCE<\/strong><\/td>\n<td>Returns the first non-null value in a list<\/td>\n<\/tr>\n<tr>\n<td><strong>CONNECTION_ID<\/strong><\/td>\n<td>Returns the unique connection ID for the current connection<\/td>\n<\/tr>\n<tr>\n<td><strong>CONV<\/strong><\/td>\n<td>Converts a number from one numeric base system to another<\/td>\n<\/tr>\n<tr>\n<td><strong>CONVERT<\/strong><\/td>\n<td>Converts a value into the specified datatype or character set<\/td>\n<\/tr>\n<tr>\n<td><strong>CURRENT_USER<\/strong><\/td>\n<td>Returns the user name and host name for the MySQL account that the server used to authenticate the current client<\/td>\n<\/tr>\n<tr>\n<td><strong>DATABASE<\/strong><\/td>\n<td>Returns the name of the current database<\/td>\n<\/tr>\n<tr>\n<td><strong>IF<\/strong><\/td>\n<td>Returns a value if a condition is TRUE, or another value if a condition is FALSE<\/td>\n<\/tr>\n<tr>\n<td><strong>IFNULL<\/strong><\/td>\n<td>Return a specified value if the expression is NULL, otherwise return the expression<\/td>\n<\/tr>\n<tr>\n<td><strong>ISNULL<\/strong><\/td>\n<td>Returns 1 or 0 depending on whether an expression is NULL<\/td>\n<\/tr>\n<tr>\n<td><strong>LAST_INSERT_ID<\/strong><\/td>\n<td>Returns the AUTO_INCREMENT id of the last row that has been inserted or updated in a table<\/td>\n<\/tr>\n<tr>\n<td><strong>NULLIF<\/strong><\/td>\n<td>Compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned<\/td>\n<\/tr>\n<tr>\n<td><strong>SESSION_USER<\/strong><\/td>\n<td>Returns the current MySQL user name and host name<\/td>\n<\/tr>\n<tr>\n<td><strong>SYSTEM_USER<\/strong><\/td>\n<td>Returns the current MySQL user name and host name<\/td>\n<\/tr>\n<tr>\n<td><strong>USER<\/strong><\/td>\n<td>Returns the current MySQL user name and host name<\/td>\n<\/tr>\n<tr>\n<td><strong>VERSION<\/strong><\/td>\n<td>Returns the current version of the MySQL database<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>MySQL has many built-in MySQL Functions. This reference contains string, numeric, date, and some advanced functions in MySQL. MySQL String [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2],"tags":[],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-sql"],"_links":{"self":[{"href":"https:\/\/barkhane.com\/sql\/wp-json\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/barkhane.com\/sql\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/barkhane.com\/sql\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/barkhane.com\/sql\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/barkhane.com\/sql\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":0,"href":"https:\/\/barkhane.com\/sql\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"wp:attachment":[{"href":"https:\/\/barkhane.com\/sql\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/barkhane.com\/sql\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/barkhane.com\/sql\/wp-json\/wp\/v2\/tags?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}