RE: Create tables using Perl DBI

Поиск
Список
Период
Сортировка
От David Coley
Тема RE: Create tables using Perl DBI
Дата
Msg-id HEEKIDKMKOPLHIMFOPMLKEIICDAA.davidcoley@home.com
обсуждение исходный текст
Ответ на Re: Create tables using Perl DBI  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Ответы Re: Create tables using Perl DBI  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Список pgsql-interfaces
Hum... I tried adding that extra ) at end of the prepare:

$sth = $dbh->prepare("create table customer (ID serial PRIMARY KEY, name
text NOT NULL, email text NOT NULL, phone text NOT NULL, fax text DEFAULT,
address text NOT NULL, address2 text DEFAULT, zip text NOT NULL, city text
NOT NULL, state text NOT NULL, country text NOT NULL)")   or die "Could not Create Table:
$DBI::errstr";$sth->execute;#disconnectfrom the database.$dbh->disconnect();
 

>
> It looks like you're missing a ")" in there somewhere.
> Parse error usually = syntax error.
>

Still the same error:

DBD::Pg::st execute failed: ERROR:  parser: parse error at or near ","

David Coley
davidcoley@home.com
http://www.davidcoley.com



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: Create tables using Perl DBI
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: Create tables using Perl DBI