Zuoqiu-Yingyi / widget-query

一个将思源笔记数据库查询结果以表格样式渲染的挂件 | A widget that renders the query results of the Siyuan Notes database in tabular style.
GNU Affero General Public License v3.0
55 stars 7 forks source link

查询结果表格不是按指定的字段先后顺序显示 #36

Closed entps closed 1 year ago

entps commented 1 year ago
image
Zuoqiu-Yingyi commented 1 year ago

在字段别名首添加 __<数字>__ 即可定义查询结果顺序, 如下所示

SELECT
  content as __01__文件名,
  hpath as __02__笔记本,
  created as __03__创建日期,
  updated as __04__更新日期
FROM
  blocks
WHERE
  type = 'd';