Readers: 14
1
2
my $dbh = DBI->connect("DBI:Oracle:host=$args{dbhost};sid=CUSTOMERS", "$args{dbuser}", "$args{dbpass}")
or die "Couldn't connect to database: " . DBI->errstr;
my $sql = "insert into address (nummer, vorname, nachname, jahre) values (1,'jens','jensen', 43)";
1
2
3
4
DBD::Oracle::st execute failed: ORA-00942: table or view does not exist (DBD ERROR: error possibly near <*> indicator at char 12
n 'insert into <*>address (NUMMER, VORNAME, NACHNAME, JAHRE) values (1,'jens','jensen', 43)') [for Statement "insert into addres
(NUMMER, VORNAME, NACHNAME, JAHRE) values (1,'jens','jensen', 43)"] at C:\Documents and Settings\Administrator\Desktop\db_query.
line 57.
$sth->execute or die $dbh->errstr();
2010-07-11T13:50:01 a_abelsKann ich syntaktisch vor die Tabelle auch noch den Datenbanknamen mitgeben? Und wenn ja, wie?
insert into customers.address ...
alter session set current schema = customers