1
我想從具有以下條件的數據庫表「build_wiki_notes_meta」中獲取build_notes,我正在使用下面的查詢,它不給我任何輸出,任何人都可以提供指導如何解決這個問題?有什麼不對?有更好的查詢(更快)?查詢以獲得最新的生成筆記,它不爲空,並且不匹配字符串
1.MAX date_created
2.MATCHES給定software_product_id
3.build_notes不null
4.build_notes不匹配Currently no notes for this build
QUERY:
select
meta_name,
build_notes
from
(
select meta_name, MAX(date_created) AS date_created, build_notes
from build_wiki_notes_meta
where software_product_id = 105
order by date_created desc
) as tmp
where (tmp.build_notes is NOT null) AND
(tmp.build_notes NOT LIKE '%Currently no notes for this build%')
數據庫表: -