mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
Applied doc fixes by Felix Li (RT #90211)
This commit is contained in:
parent
6141905c10
commit
c811601975
1 changed files with 2 additions and 2 deletions
|
@ -2338,11 +2338,11 @@ Here is a very short example of using FTS :
|
|||
$dbh->do(<<"") or die DBI::errstr;
|
||||
CREATE VIRTUAL TABLE fts_example USING fts4(content)
|
||||
|
||||
my $sth = $dbh->prepare("INSERT INTO fts_example(content) VALUES (?))");
|
||||
my $sth = $dbh->prepare("INSERT INTO fts_example(content) VALUES (?)");
|
||||
$sth->execute($_) foreach @docs_to_insert;
|
||||
|
||||
my $results = $dbh->selectall_arrayref(<<"");
|
||||
SELECT docid, snippet(content) FROM fts_example WHERE content MATCH 'foo'
|
||||
SELECT docid, snippet(fts_example) FROM fts_example WHERE content MATCH 'foo'
|
||||
|
||||
|
||||
The key points in this example are :
|
||||
|
|
Loading…
Add table
Reference in a new issue