dsk61780 2014-01-12 08:30
浏览 118
已采纳

数据库错误:MySQL错误号:1064

I can't for the life of me figure out what the issue here is, maybe another pair of eyes may help:

Here is the error message:

Error Number: 1064

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 '://www.amazon.com/Lemon-Recipes-Alkalizing-Addition-Delectable-ebook/dp/B00CZTCS' at line 1

INSERT INTO `books` (`asin`, `keyword_id`, `page_count`, `sales_rank`, `price`, `link`) VALUES (B00CZTCS9K, 1, 77, 96317, 2.25, http://www.amazon.com/Lemon-Recipes-Alkalizing-Addition-Delectable-ebook/dp/B00CZTCS9K%3FSubscriptionId%3DAKIAJPNAWJHXGB5IYXOA%26tag%3Dgenroad-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB00CZTCS9K)
  • 写回答

3条回答 默认 最新

  • dta38159 2014-01-12 08:34
    关注

    As M Khalid Junaid mentioned you will need to wrap string in a single quote. That means both 'B00CZTCS9K' and the link 'http://....' should be wrapped.

    The rest look like decimals but, if any other value is a string(varchar) than wrap it also.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器