Quantcast
Channel: Apache OpenOffice Community Forum
Viewing all articles
Browse latest Browse all 1291

Tables & Queries • Re: How to do I change field names?

$
0
0
To change the name of a column in a table, click on the Tables icon in the left pane, right click on the desired table and select Edit, type a new name in the Field Name column, and save the table. You should also save the whole Base document afterward.
You can also do this from the Tools -> SQL menu. If I have a table named "Scores" and I want to change the name of the Type column to Sport, the SQLis

Code:

ALTER TABLE "Scores" ALTER COLUMN "Type" RENAME TO "Sport"
This assumes you are using the default HSQLDB database engine.

Statistics: Posted by FJCC — Tue Jul 23, 2024 1:19 am



Viewing all articles
Browse latest Browse all 1291

Trending Articles