このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Concatenating strings- Open Office 2 (Data) Base How To - fdb8concat AUTHOR'S MAIN SITE   > > > > >   TABLE OF CONTENTS for Libre Office/ Open Office database tutorials.

"FDB" pages: "解放する/自由な Data Base"...

LibreOffice / OpenOffice Database Tutorials

How To Concatenate Strings

You may find that the database which is part of Libre Office/ OpenOffice delights you as much as it has me. This page tries to help you use it.

Remember that Open Office, 含むing ooBase, is 解放する/自由な! But don't let that fool you. And it's not new. Big organizations, 政府 and 非軍事の, are 可決する・採択するing it as their 基準 office 控訴... and saving million$, but still Getting The 職業 Done.

There's more about ooBase in the main 索引 to this 構成要素.

This page is "browser friendly". Make your browser window as wide as you want it. The text will flow nicely for you. It is easier to read in a 狭くする window. With most browsers, 圧力(をかける)ing 加える, minus or 無 while the 支配(する)/統制する 重要な (ctrl) is held 負かす/撃墜する will change the texts size. (大きくする, 減ずる, 回復する to default, それぞれ.) (This is more fully explained, and there's another tip, at my 力/強力にする Browsing page.)

Page contents © TK Boyd, Sheepdog ソフトウェア ®, 2/06-2/19



String concatenation: The quick answer_______________

I'll go into more 詳細(に述べる) in a moment. For now a concise answer.

Anywhere you can put a string, you can put....

CONCAT('Fish','cakes')

First thing to know: There can only be two 条件. That's okay, though, '原因(となる) you can "cheat"....

CONCAT('One',CONCAT('Two','Three'))

Of course, you probably want to work with the contents of fields from your 記録,記録的な/記録するs. If your database has fields called FirstName and Lastname, then you can do....

CONCAT("FirstName","LastName")

(That, of course would give rise to things like FredBloggs... no space between the 指名するs, so you would 現実に, in practice, use the messier....

CONCAT("FirstName",CONCAT(' ',"LastName"))

Second thing to notice: When you 言及する to a field, put the 指名する in quotation 示すs, "s. When you are 明示するing a literal, put it in apostrophes: 's.


Good news!_____________

Beginning with ooBase 2.4 there's a new way to concatenate: A 二塁打 |. (That's two keystrokes, as in XX. The "|" 重要な, on my US keyboard, is a 転換d "\", just above the Enter 重要な. I couldn't find it when my keyboard was 始める,決める (Windows international settings) as a UK keyboard.>

So our earlier, 精製するd FirstName-space-LastName becomes, from ooBase 2.4 onwards....

"FirstName"||' '||"LastName"

(No "CONCAT", no parentheses "()".)


A little more detail_____________

Let's say you have a database with the に引き続いて fields. For this simple 事例/患者, they're all text fields. The first is the (米)棚上げする/(英)提議する's 最初の/主要な 重要な.

.... and you want a 名簿(に載せる)/表(にあげる) like....

平易な!

(Create the (米)棚上げする/(英)提議する, give it the data shown.)

Select the Queries part of the ooBase main 事業/計画(する) 管理/経営 page

Click on "Create Query In Design 方式"

If it isn't there straight away, select your (米)棚上げする/(英)提議する to be in the パネル盤 at the 最高の,を越す of the query designer.

To get things started, select FirstName from the 減少(する) 負かす/撃墜する 名簿(に載せる)/表(にあげる) for "Field" in the first column of the design grid in the 底(に届く) of the query designer, and "EmployeeID" for the field for the second column.

Save and run the query.

Fiddle with it all until you get a sensible result! (Use the "Run query" button on the toolbar.)

Alter the field spec for the first column to....

CONCAT("LastName",CONCAT(', ',"FirstName"))

Save query, run query. Success! (I hope!)

(To make the column headings nicer, fill something suitable in on the 偽名,通称 line in the 底(に届く) pane of the design window. Call the first column "指名する", and things will "work" when you try what comes next.)

Want to do more? Create a 報告(する)/憶測... you can use the 報告(する)/憶測 Wizard... which 報告(する)/憶測s on the query you just made, and sorts the 生産(高) by 指名する.

If you are using ooBase 2.4, the に引き続いて is ALL you need in the field box of the first column:

"FirstName"||' '||"LastName"

Is your life like 地雷? That page... which boils 負かす/撃墜する to not much more than....

CONCAT("FirstName","LastName")

CONCAT("FirstName",CONCAT(' ',"LastName"))

... and...

"FirstName"||' '||"LastName"

... took TWO DAYS to get out the door. Sigh. You know the feeling!! (Please give a piece of my shareware, or even freeware, a try???)



編集(者)の Philosophy

This 構成要素 is "browser-friendly"... in particular, you can (and I recommend that you do!) make your browser window 狭くする, so that you don't have to try to read long lines.

I dislike 'fancy' websites with more 関心 for a flashy 外見 than for good content. For a pretty picture, I can go to an art gallery. Of course, an attractive 場所/位置 WITH content deserves 賞賛する... as long as that pretty 直面する doesn't cost download time. In any 事例/患者....

I am trying to 現在の this 構成要素 in a 判型 which makes it 平易な for you to USE it. See the main 索引 to this 構成要素 for more (警察などへの)密告,告訴(状) about the way it is 地位,任命するd.


広告 from page's editor: Yes.. I do enjoy 収集するing these things for you... I hope they are helpful. However.. this doesn't 支払う/賃金 my 法案s!!! If you find this stuff useful, (and you run an MS-DOS or Windows PC) please visit my freeware and shareware page, download something, and 循環させる it for me? Links on your page to this page would also be 高く評価する/(相場などが)上がるd!

PLEASE >>> Click here to visit editor's Sheepdog ソフトウェア (tm) freeware, shareware pages <<< PLEASE


If you liked this ooBase tutorial, see the main 索引 for (警察などへの)密告,告訴(状) other help from the same author.

Editor's email 演説(する)/住所. Suggestions welcomed!     - - -    Want a 場所/位置 hosted, or email? I like 1&1's services.


Valid HTML 4.01 Transitional Page has been 実験(する)d for 同意/服従 with INDUSTRY (not MS-only) 基準s, using the 解放する/自由な, 公然と accessible validator at validator.w3.org. Mostly passes.

AND passes... Valid CSS!


One last bit of advice: Be sure you know all you need to about spyware.

. . . . . P a g e . . . E n d s . . . . .