]> git.wh0rd.org - tt-rss.git/blob - help/1.php
TAG 1.2.18
[tt-rss.git] / help / 1.php
1 <h1>Labels and SQL Expressions</h1>
2
3 <p>Labels are generated by using SQL expressions. The &laquo;SQL expression&raquo; is added to WHERE clause of view feed query. You can match on ttrss_entries table fields and even use subselect to query additional information. This functionality is considered to be advanced and requires some understanding of SQL.</p>
4
5 <h2>Examples</h2>
6
7 <p>Match all unread articles:</p>
8
9 <pre>unread = true</pre>
10
11 <p>Matches all articles which mention Linux in the title:</p>
12
13 <pre>ttrss_entries.title like '%Linux%'</pre>
14
15 <p>See the database schema included in the distribution package for gruesome
16 details.</p>
17