Leser: 3
|< 1 2 3 4 >| | 31 Einträge, 4 Seiten |
1 2 3 4 5 6 7 8 9 10 11
use Net::MySQL; $mysql = Net::MySQL->new( hostname => 'localhost', database => 'cdcol', user => 'user', password => 'password' ); $mysql->query("INSERT INTO cds (title, intepreter) VALUES ('Perl', 'Test')");
Quote...
# INSERT example
$mysql->query(q{
INSERT INTO tablename (first, next) VALUES ('Hello', 'World')
});
printf "Affected row: %d\n", $mysql->get_affected_rows_length;
...
1
2
3
4
5
6
7
install_driver(mysql) failed: Can't locate loadable object for module DBD::mysql
in @INC (@INC contains: D:/Programme/xampplite/perl/site/lib D:/Programme/xampp
lite/perl/lib .) at (eval 4) line 3
Compilation failed in require at (eval 4) line 3.
Perhaps a module that DBD::mysql requires hasn't been fully installed
at mysql.pl line 7
Can't locate loadable object for module ...
|< 1 2 3 4 >| | 31 Einträge, 4 Seiten |