libreoffice 文本聚合器

发布于 2025-01-18 09:33:12 字数 299 浏览 3 评论 0原文

是否可以从libreoffice基础中的汇总函数中串联文本。例如:

Column1Column2列3
1Hello23
2World27

函数将返回“ Hello,World”

Is it possible to concatenate text from an aggregate function in LibreOffice Base. For example:

column1Column2Column3
1Hello23
2World27

The function would then return "Hello, world"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你与昨日 2025-01-25 09:33:12

你没有说你正在使用哪个数据库。

请查看左下角的状态栏。如果您看到类似的内容,则说明正在使用内置的 Firebird 数据库。

FireBird

在这种情况下,您可以使用 LIST() 聚合函数。类似于

SELECT LIST("Column2") AS string_agg FROM "MyTable"

如果您创建了 HSQLDB 数据库,则可以尝试驯服 GROUP_CONCAT() 函数

HSQLDB

如果您如果使用不同的数据库,请检查该特定数据库的文档 - 每种 SQL 方言中都有类似的函数,但语法不同。

You didn't say which database you are using.

Please look at the statusbar at the bottom left. If you see something like this, then the built-in Firebird database is being used.

FireBird

In this case, you can use the LIST() aggregate function. Something similar to

SELECT LIST("Column2") AS string_agg FROM "MyTable"

If you have created an HSQLDB database, you can try to tame the GROUP_CONCAT() function

HSQLDB

In case you are using a different database, check the documentation for that particular database - there are similar functions in each SQL dialect, but they differ in syntax.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文