Dude.... that's a SELECT statement. It hasn't changed anything. Drop your
"test" table and start again.


On Tue, Feb 16, 2010 at 11:44 AM, gabjos <[email protected]> wrote:

> When I was trying to find out what the primary key for the table in
> question I was given the following query:
>
> select column_name from information_schema.indexes
> where table_schema = 'PUBLIC'
> and table_name='TEST'
> and primary_key
>
> I executed it on my table and since then I have been able to perform
> any dml on it. Is there a way to undo this?
>
> On Feb 15, 4:08 pm, Thomas Mueller <[email protected]>
> wrote:
> > Hi,
> >
> > Tables with referential integrity constraints can not be truncated.
> > Also, system tables and view can not be truncated.
> >
> > See also:
> http://www.h2database.com/javadoc/org/h2/constant/ErrorCode.html#c90106
> > or use the Error Analyzer:
> http://www.h2database.com/html/sourceError.html
> >
> > Regards,
> > Thomas
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<h2-database%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/h2-database?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to