SELECT root_id, level, count(*) as count FROM matrix GROUP BY root_id, level
HAVING count(*) < power(_type.degree, level);$people = array('Иван Иваныч', 'Сергей Сергеич', 'Сидор Сидорович');
$b=$pdo->prepare(" INSERT INTO `organization` SET name=:name ");
for(){
$b->bindParam(":name",$people[$i]);
$b->execute();
}truncate table;
LOAD DATA INFILE 'data.txt' INTO TABLE table;truncate table;
COPY table FROM 'data.txt';