Subject | RE: [ib-support] Creating Tables Problem |
---|---|
Author | Thomas Steinmaurer |
Post date | 2003-03-05T14:47:50Z |
Hi,
DDL statements aren't allowed in PSQL.
HTH,
Thomas.
> I need to create a table at a stored procedure, but it fails. The sql codePlain and simple, you can't.
> is the following:
>
> BEGIN
> CREATE TABLE 'TTEST' (
> ID INTEGER NOT NULL PRIMARY KEY,
> FIELDNAME VARCHAR(150) NOT NULL,
> FIELDVALUE INTEGER,
> DOCUMENT_ID INTEGER);
> END
>
>
> Error Message --> Token unknown CREATE
>
> How can I perform this ?
DDL statements aren't allowed in PSQL.
HTH,
Thomas.