ALTER USER 'miltorg'@'localhost'
IDENTIFIED WITH mysql_native_password
BY 'uuuuuuuuuuuu';
GRANT CREATE, ALTER, SELECT, INSERT, UPDATE, DELETE, DROP ON * . * TO 'miltorg'@'localhost';
GRANT * ON * . * TO 'miltorg'@'localhost';
INSERT, UPDATE, DELETE, DROP
------------
CREATE TABLE new3 SELECT * FROM new1 where sovpalo=10;
select v.* from ( SELECT new8.* , count(1) over(partition by d1) as cnt FROM new8 ) as v where cnt > 4;
SELECT id, MAX(d1), COUNT(*) FROM new8 GROUP BY d1 HAVING COUNT(*) > 2;
SELECT MAX(d1),MAX(st), MIN(st), COUNT(*) FROM new8 GROUP BY d1 HAVING COUNT(*) > 2;
----------------
CREATE TABLE iz209bez12
(
,
Model VARCHAR(20)
);
ALTER TABLE iz209bez12 DROP COLUMN Id; - удаление