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这样的问题到底应该怎么解决???

解决方案 »

  1.   

    please print out the statements behind 'near'.
      

  2.   

    SQL语法错误。
      

  3.   

    语法错误,检查near后面的部分sql语句语法
      

  4.   

    你的SQL语句呢?
      

  5.   

    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 '' at line 1select * from fengjieweibo_topic where `type` = 'first' order by `dateline` desc limit 0, 请问该如何处理,我的Q 416687658 谢谢。
      

  6.   

    你的原SQL语句是什么? 不要只是贴错误信息。
      

  7.   

    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 '' at line 1select * from fengjieweibo_topic where `type` = 'first' order by `dateline` desc limit 0, 
      

  8.   

    很显然,抛出错误时MySQL执行的并不是你给出的这一句SQL。有可能是你在"外调"(楼主你在另一个帖子中的说法)时写错了保存SQL查询语句的变量。
      

  9.   

    字段名字和php的保留字重名,更换字段名字
      

  10.   

    可以echo一下你的sql语句,有可能是内容字段的值中包含sql中有特殊用途的符号,如英文半角单引号“''”(内容中的html标签属性值的引号会导致这样的错误)
      

  11.   

    语法错误,检查near后面的部分
      

  12.   

    我也发生此错误了,我把Sql贴在sqllog中执行,没有问题,怎么解决呀 !我是新手,请高手指教
      

  13.   

    create table flight
    (
        f_id int (5) not null ,
        f_number varchar(10) not null,
        f_company varchar(10) null,
        f_start_addr varchar(20) not null,
        f_end_addr varchar(20) not null,
        f_start_time date not null, 
        f_end_time date not null,
        f_discount double (4) not null ,
        f_price double (10) not null, 
        f_leave_num  int (10) not null )
      

  14.   

    请共享完整的SQL脚本及错误信息 ,问题导致原因是SQL脚本中存在语法错误,不共享具体SQL脚本无法确定具体导致原因(那一句SQL有问题及对应的解决办法)