HSQLDB 2.0
Table = Table1
Fields= ID (primary key) Not autovalue; myname (VARCHAR) length = 50
I am unable to change any parameter of any field, example, can not change ID to autovalue = Yes from autovalue = No.
For the text field, I am unable to change the the length from 50 to 100 or from 50 to a lower number.
I must delete the field, and establish the field again, and ensure that I have selected the parameters.
Then, I must re-enter all the field's values.
Is there a solution to this?
Thank you.
Al
[Solved] Alter Table Field
-
- Posts: 90
- Joined: Fri Dec 31, 2010 5:16 pm
[Solved] Alter Table Field
Last edited by capemayal1 on Mon Nov 21, 2011 12:34 am, edited 1 time in total.
Re: Alter Table Field
Since this is for HSQL 2.0 ( NOT for HSQL 1.8 as in OpenOffice default Version 3.3 and prior ):
Sliderule
Thanks to add [Solved] in your 1st post Subject (edit button top right) if this issue has been resolved.
- From the Menu: Tools -> SQL...
- In the Command to execute box, enter:
Code: Select all
ALTER TABLE "Table1" ALTER COLUMN "ID" GENERATED ALWAYS AS IDENTITY; ALTER TABLE "Table1" ALTER COLUMN "myname" VARCHAR(100);
- Press the Execute button
- Press the Close button
- From the Menu: View -> Refresh Tables
Sliderule
Thanks to add [Solved] in your 1st post Subject (edit button top right) if this issue has been resolved.
Re: Alter Table Field
Other properties may have SQL- or GUI-based workarounds as well. See the following link for details:capemayal1 wrote:HSQLDB 2.0...I am unable to change any parameter of any field...Is there a solution to this?
The Frozen 'Field Property' Workaround (when using Base to create/adjust Table structures; applies to all external databases).
You may find other database management tools useful in this role as well.
.
AOO 4.1.x; LO 4.2.x; Windows 7/8 64-bit
Warning: Avoid embedded databases --> Solution: Adopt a portable 'split database' folder
Soli Deo gloria
Warning: Avoid embedded databases --> Solution: Adopt a portable 'split database' folder
Soli Deo gloria