Re: truncate table stmt question



Hi all.

Truncate statement is supported in 10.00.xC4.

Here is a part of release note.
ids_unix_relnotes_10.0.txt
1.5.1 New Features in 10.00.xC4

IBM Informix Dynamic Server, Version 10.00.xC4 contains the following
new features:
* TRUNCATE table support

1.5.1.1 TRUNCATE Table support

TRUNCATE is a SQL keyword that quickly deletes active rows from a table
and the b-tree structures of its indexes. The active rows are deleted
without dropping the table or its schema, access privileges, triggers,
constraints, and other attributes. With TRUNCATE TABLE, you can
de-populate a local table and release (or reuse for the same table) the
storage space that formerly held its data rows and b-tree structures.
For more information, see the Guide to SQL: Syntax.

Regards.



--
Tsutomu Ogiwara from Tokyo Japan.





From: "Art S. Kagel" <kagel@xxxxxxxxxxxxx>
To: Doug Fossmeyer <DougF@xxxxxxxxxxxxxxxxxx>
CC: informix-list@xxxxxxxx
Subject: Re: truncate table stmt question
Date: Wed, 30 Aug 2006 16:01:35 -0400

Doug Fossmeyer wrote:
> Hello, We recently upgraded to 94fc8. Per TFM, I am attempting to use the truncate table sql. It is generating the illuminating 201 error. The table has no constraints or views. It's data is generated via a trigger from a master table.
> syntax to date:
> truncate table yadda;
> truncate yadda;
> truncate only yadda;
>
> I saw a reference to this functionality being available only in XPS; however Syntax manual for 94 does not give that restriction.

From TFM:

TRUNCATE

Use the TRUNCATE statement for quick removal of all rows from a table and
all corresponding index data.

Only Extended Parallel Server supports this statement, which is an extension
to the ANSI/ISO standard for SQL.

In effect this only works in XPS (Informix 8.xx). There is an outstanding
request to include this functionality in one of the next couple of releases.
You'll have to await the official final features list for IDS 10.50
tentatively due out end of 2006Q4.

Art S. Kagel
_______________________________________________
Informix-list mailing list
Informix-list@xxxxxxxx
http://www.iiug.org/mailman/listinfo/informix-list


.



Relevant Pages

  • Re: truncate table stmt question
    ... TRUNCATE table support ... TRUNCATE is a SQL keyword that quickly deletes active rows from a table ... IBM Informix Development Munich, Germany ... truncate table yadda; ...
    (comp.databases.informix)
  • RE: Exporting query to XL is truncating field data
    ... Transfertext or export to rtf may be truncate the field. ... When You Export an Access Report the Memo Field Is Truncated ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.access.queries)
  • Re: Why doesnt (open ... :if-exists) support :truncate?
    ... dialects and running on a number of very different platforms, from Lisp ... If you think:truncate is important, ... file system should support a Lisp property lisp on every inode. ... operating systems that can implement it. ...
    (comp.lang.lisp)
  • Re: [PATCH 1/1] Enable fully functional truncate for hugetlbfs
    ... Truncate was originally limited to reducing the file size ... because page faults were not supported for hugetlbfs. ... faults have been implemented it is now possible to fully support ...
    (Linux-Kernel)
  • [PATCH 1/1] Enable fully functional truncate for hugetlbfs
    ... This patch enables the full functionality of truncate for hugetlbfs ... because page faults were not supported for hugetlbfs. ... faults have been implemented it is now possible to fully support ...
    (Linux-Kernel)