我有以下查询,它在破折号处失败: 'create table 4$0_Anzahl_der_Anforderungen_des_V-NEF_2019 (Monat INTEGER, EigenschaftError: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL如何正确地替换它?
当我结合使用dbFit和Fitnesse时,在SQL查询中转义冒号和破折号时遇到了问题。!|Query|select to_char(my_birthday,'YYYY-MM-DD HH24:MI:SI') from family|!|Query|select to_char(my_birthday,'YYYY_MM_DD HH24_MI_SI') from famil
此外,没有连字符的架构也是成功创建的。基于堆栈跟踪,它看起来像是mysql驱动程序中的一个问题。at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110) ~[mysql-connector-java~[mysql-connector-java-8.0.14.jar:8.0.14]
at com.mysql.cj.jdbc.exc
我在MySQL DB中使用REGEXP进行搜索,但是当我在搜索查询中插入' (撇号)和- (破折号)时,它没有返回正确的数据。select * from table where (field REGEXP 'SAN DIEGO | SAN DIEGO |^SAN DIEGO' or field2 REGEXP