support exclude column
This commit is contained in:
parent
7888387315
commit
67915b71dd
@ -4,7 +4,7 @@ use DBI;
|
||||
|
||||
my $db = DBI->connect("dbi:SQLite:dbname=rivers.db") or die $DBI::errstr;
|
||||
|
||||
my $stations_st = $db->prepare("select id, name, watercourse from stations");
|
||||
my $stations_st = $db->prepare("select id, name, watercourse from stations where exclude<>'yes'");
|
||||
$stations_st->execute();
|
||||
my $stations = $stations_st->fetchall_hashref("id");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user