SELECT
`resources`,
`command`,
MAX(`timestamp`)
FROM
`command`
WHERE
(
(
(`user_id` = 1000196805)
AND (
`command`.`resources` LIKE '%\"14\":%'
)
)
AND (`timestamp` >= 1439856000)
)
AND (`timestamp` <= 1439942400)
ORDER BY
`timestamp` DESC
GROUP BY
`resources`
скрипт выводит только строку title в таблице news
SELECT title FROM news
ID uint `gorm:"primary_key"`
$word = 'борода';
echo $word[2].$word[3];echo mb_substr($word, 1, 1, "UTF-8");
MySQL SET PASSWORD Statement Syntax
The syntax for the MySQL SET PASSWORD statement to change an arbitrary user's password is as follows:
SET PASSWORD FOR 'user'@'host' = PASSWORD('newpassword');
To change your own password, the syntax is:
SET PASSWORD = PASSWORD('newpassword');
That is, to change another user's password, you will need to specify their username and hostname exactly as it is in the User and Host columns in the mysql.user table.
SELECT name, SUM(price) FROM subrequests GROUP BY request_id