хотелось бы подсчитать сколько строк находится в таблице products который у таблиц указано поля search_result.query_text
SELECT s.id, s.query_text ( select count(*) from products where name concat('%', s.query_text, '%') limit 0, 1 ) as total FROM search_result AS s GROUP BY s.query_text
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Нужны сайты с примерами верстки, типа https://css-tricks.com/.
Типовые приемы и нестандартные
на все случаи жизни.
Накидайте ссылок.
Question
xaero
У меня имеется 2 таблиц
1. search_result
2. products
хотелось бы подсчитать сколько строк находится в таблице products который у таблиц указано поля search_result.query_text
вообще то такое возможно?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.