SELECT * FROM number_1 WHERE branch LIKE '%текст%'
SELECT `product_id` FROM `product_properties_values` WHERE (`property_id`=1 AND `value`=2) OR (`property_id`=3 AND `value`=3)
SELECT content,
REPLACE(
CONCAT(
LEFT(content, LOCATE('<a href=', content)-1),
SUBSTRING(content, LOCATE('>', content)+1)
),
'</a>', ''
) new_content
FROM site_content
SELECT I.NAME_INSTITUTION,
A.UID_FIELD,
A.ANSWER_USER,
COUNT (*) CNT_ANSWER
FROM LIST_INSTITUTIONS I
LEFT JOIN LIST_ANSWERS A ON A.UID_INSTITUTION = I.ID_INSTITUTION
GROUP BY I.NAME_INSTITUTION, A.UID_FIELD, A.ANSWER_USER
HAVING COUNT (*) > 1
SELECT price.*, regions.*, rejim.*, tariffs.*, vozmojnosti.*, organizacia.*
UPDATE Users SET logist='$log' AND sum='$sum' WHERE id=$form_id
UPDATE Users SET logist='$log', sum='$sum' WHERE id=$form_id
begin
DELETE FROM `public_target`;
INSERT INTO `public_target` (`code`,`requests_count`,`target_id`,`type`) VALUES ("print(\'lol\')",0,25058,"py");
commit;
end;
SELECT *
FROM transport
LEFT JOIN cities ON transport.city = cities.id
where cities.id = ??