<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Binary Tides &#187; openoffice</title>
	<atom:link href="http://www.binarytides.com/blog/category/openoffice/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binarytides.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 24 Jul 2010 05:31:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Change column / field order in OpenOffice Base ( HSQL )</title>
		<link>http://www.binarytides.com/blog/change-column-field-order-in-openoffice-base-hsql/</link>
		<comments>http://www.binarytides.com/blog/change-column-field-order-in-openoffice-base-hsql/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 12:07:00 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[openoffice]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=34</guid>
		<description><![CDATA[Altering the sequence of fields of a table was a feature I was looking for in OpenOffice Base. It is not directly possible to drag the columns or fields and alter their sequence.
A SQL workaround can do the same thing.

If the sequence of fields is :
name , email , address , phone
and phone is to [...]]]></description>
			<content:encoded><![CDATA[<p>Altering the sequence of fields of a table was a feature I was looking for in OpenOffice Base. It is not directly possible to drag the columns or fields and alter their sequence.</p>
<p>A SQL workaround can do the same thing.</p>
<p><span id="more-34"></span></p>
<p>If the sequence of fields is :</p>
<p>name , email , address , phone</p>
<p>and phone is to be brought before address like this :</p>
<p>name , email , phone , address</p>
<p>then the sql for this should be</p>
<p>1. ALTER TABLE &#8220;tablename&#8221; ADD COLUMN &#8220;phone2&#8243; INTEGER BEFORE &#8220;address&#8221;</p>
<p>2. UPDATE &#8220;tablename&#8221; SET &#8220;phone2&#8243; = &#8220;phone&#8221;</p>
<p>3. ALTER TABLE &#8220;tablename&#8221; DROP COLUMN &#8220;phone&#8221;</p>
<p>4. ALTER TABLE &#8220;tablename&#8221; ALTER COLUMN &#8220;phone2&#8243; RENAME TO &#8220;phone&#8221;</p>
<p>Then View > Refresh Tables in the top menu. And open the table again for viewing.<br />The sequence should now be name , email , phone , address</p>
<img src="http://www.binarytides.com/blog/?ak_action=api_record_view&id=34&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.binarytides.com/blog/change-column-field-order-in-openoffice-base-hsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
