zoukankan      html  css  js  c++  java
  • 开发中容易写错的一条SQL语句

    select * from tableName where name = like '%糖糖%'

    出错的地方:name后面有=和like

    出错的原因:复制过来的,其它地方是=,没有删掉直接加了like

    报错:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIKE CONCAT(CONCAT('%', '  1470622825427 '),'%')

    IT技术和行业交流群 417691667

  • 相关阅读:
    php 解析xml
    php
    php 设置自动加载某个页面
    Mac
    mysql
    Git
    C#
    C# 正则表达式
    C# ASCII码排序
    (转)datagridview 自定义列三步走
  • 原文地址:https://www.cnblogs.com/sun-rain/p/5759058.html
Copyright © 2011-2022 走看看