メニューを切り替える
個人設定メニューを切り替える
個人メニューを切り替える
ログインしていません
編集を行うと、IPアドレスが公開されます。

「テンプレート:飲食店件数取得」の版間の差分

提供: 川西図鑑
ページの作成:「<noinclude> {{#template_params:}} {{#cargo_declare:_table=飲食店情報|=Page}} </noinclude><includeonly>{{#cargo_store:_table=飲食店情報}} {{#template_display:_format=table}}</includeonly>」
 
編集の要約なし
 
(同じ利用者による、間の2版が非表示)
1行目: 1行目:
<noinclude>
{{#cargo_query:
{{#template_params:}}
tables=図鑑情報
{{#cargo_declare:_table=飲食店情報|=Page}}
| fields=COUNT(*)
</noinclude><includeonly>{{#cargo_store:_table=飲食店情報}}
| where=図鑑情報.カテゴリ='飲食店' AND 図鑑情報.{{{column}}} LIKE CONCAT('%{{{detail}}}%')
{{#template_display:_format=table}}</includeonly>
}}

2026年2月4日 (水) 16:42時点における最新版

Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '{{{column}}} LIKE CONCAT('%{{{detail}}}%') ORDER BY COUNT(*) LIMIT 100' at line 1

Function: CargoSQLQuery::run Query: SELECT COUNT(*) FROM `ua6g_cargo__図鑑情報` `図鑑情報` WHERE `図鑑情報`.`カテゴリ`='飲食店' AND `図鑑情報`.``{{{column}}} LIKE CONCAT('%{{{detail}}}%') ORDER BY COUNT(*) LIMIT 100