Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
$file = './file.json'; $spl = new SplFileObject($file); $spl->seek(177777); echo $spl->current()
SELECT AuthorName, COUNT(authorId ) as authorId FROM `book` LEFT JOIN autor ON authorId = id GROUP BY AuthorName HAVING authorId >= 3
SET @del := (SELECT CONCAT('DELETE FROM ', GROUP_CONCAT(TABLE_NAME SEPARATOR ' WHERE id=0; DELETE FROM ') , ';' ) AS statement FROM information_schema.TABLES WHERE TABLE_NAME LIKE '%table_%' ); PREPARE stmt FROM @del; EXECUTE stmt;
SELECT * FROM `t1` LEFT JOIN (SELECT * FROM `t2` WHERE `flag`=0) AS `t2` ON `t1`.`id` = `t2`. `id_iz_pervoi_tablici`