squeryl MySQLドライバエラーsqueryl MySQLドライバエラー
文を実行しながら、私は最近、MySQLへのpostgresを変更、Squerylは、単純なクエリ
from(AwacsSchema.ruleConfigs)(rule => select(rule))
例外として正常に動作しません:あなたは、エラーでを持っていますあなたのSQL構文。あなたのMySQLサーバのバージョンに対応するマニュアルをチェックし、右側の構文で "name"を "rule_conf13_name"、 "rule_conf13"、 "expression_category"を2行目で "rule_co"として使用してください。 errorCode:1064、sqlState:42000 "rule_conf13_expression_category"、 "rule_conf13" として "rule_conf13_name" として
を選択し、 "rule_conf13"。 "名前"、
"rule_conf13"。 "expression_category"。 "createdTime" "rule_conf13_createdTime" として、「rule_conf13 "" interval "を " rule_conf13_interval "、" rule_conf13 "。" id "を" rule_conf13_id "、
" rule_conf13 "とします。 rule_conf13_expression「として "PRESSION"、
"rule_conf13_status "として "rule_conf13_origin "として "rule_conf13_receivers "
"rule_conf13"。" 起源"、
"rule_conf13"。" ステータス"、
"として" rule_conf13"。" 受信機"rule_conf13_template" として "rule_conf13"。 "テンプレート"、「
"rule_conf"
から "rule_conf13_object_id" rule_conf13として "rule_conf13_updatedTime" として
"rule_conf13"。 "updatedTime"、
"rule_conf13"。 "OBJECT_ID" "
基本的なことを学ぶ必要があります。 https://dev.mysql.com/doc/refman/5.7/en/identifiers.html – CBroe
識別子の引用符文字がバックティック( ')であることがわかりますが、SQL式は" Squeryl "によって自動生成されます。 mysql-java-connectorの問題です。 SquertlはORMフレームワークです –
[MySQLでは一重引用符、二重引用符、バッククォートを使用する場合](https://stackoverflow.com/questions/11321491/when-to-use-single-quotes-double-quotes)の可能な複製-and-backticks-in-mysql) – Qirel