02cr_table.t
来自「SinFP是一种新的识别对方计算机操作系统类型的工具」· T 代码 · 共 19 行
T
19 行
$|++;use strict;use Test;BEGIN { plan tests => 4 }use DBI;unlink("foo");my $dbh = DBI->connect("dbi:SQLite:dbname=foo", "", "");ok($dbh);$dbh->{AutoCommit} = 1;$dbh->do("CREATE TABLE f (f1, f2, f3)");my $sth = $dbh->prepare("SELECT f.f1, f.* FROM f");ok($sth->execute());my $names = $sth->{NAME};ok(@$names == 4);print("# ", join(', ', @$names), "\n");ok($names->[0] eq "f1"); # make sure the "f." is removed$sth->finish;$dbh->disconnect;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?