DBå¨ãã®ã¢ã¸ã¥ã¼ã«ãéçºãã¦ããå ´åããã¹ãDBã«SQLiteã使ãäºãè¯ãããã¾ãã ãã®éãæ®éã§ããã°ä»¥ä¸ã®ãããªãã¹ãã³ã¼ããæ¸ãã¨æãã¾ã use Test::More tests => 1; use DBI; do { # SQLiteã§ä½¿ããã¡ã¤ã«ãæå® my $dbh = DBI->connect('dbi:SQLite:./test.db','',''); $dbh->do(q{CREATE TABLE foo (id INT, name TEXT)}); $dbh->do(q{INSERT INTO foo (id, name) VALUES (10,'nekokak')}); my $sth = $dbh->prepare('SELECT * FROM foo'); $sth->execute; my $row = $sth->fetchrow_hashref();
{{#tags}}- {{label}}
{{/tags}}