st = ui->find_l->text() + "%";q.prepare("SELECT * FROM main WHERE name LIKE :st");
C++ (Qt)q.prepare("SELECT * FROM main WHERE name LIKE :st || '%'");q.bindValue(":st", st);
C++ (Qt)q.prepare("SELECT name,ostatok,base_chena,postavchik FROM main WHERE name LIKE concat(:st,'%') UNION ALL SELECT name,ostatok,base_chena,postavchik FROM uralbiofarm WHERE name LIKE concat(:st1,'%')");q.bindValue(":st",ui->find_l->text());q.bindValue(":st1",ui->find_l->text());q.exec();
C++ (Qt)q.prepare("SELECT m.name,m.ostatok,m.base_chena,m.postavchik FROM main AS m WHERE m.name LIKE concat(:st,'%') UNION ALL SELECT u.name,u.ostatok,u.base_chena,u.postavchik FROM uralbiofarm AS u WHERE u.name LIKE concat(:st1,'%')");q.bindValue(":st",ui->find_l->text());q.bindValue(":st1",ui->find_l->text());q.exec();