duanqiechui2378 2013-08-08 22:55
浏览 51

使用php将mysql数据保存到sql文件,准备导入到sqlite中

I have a script that generates a sql file from the data saved in a mysql database. The data is stored in the mysql database without any added slashes. This all works fine except for quotes. If there is a quote in the mysql data then the file is generated, but it wont then insert the data into sqlite. I have tried adding slashes to the data that is extracted and put into the sql file, but this doesn't work.. Is there a correct procedure to do this, or a better way to get data from mysql into sqlite?

  • 写回答

1条回答 默认 最新

  • dpqvwgr74759 2013-08-08 23:05
    关注

    Why not dump the data via mysql itself rather than PHP code? http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器