gpt4 book ai didi

mysql - 根据 CSV 文件检查注册

转载 作者:行者123 更新时间:2023-11-29 02:38:31 24 4
gpt4 key购买 nike

我是 MySQL 和 PHP 的新手(如您所知),我想知道是否有人知道将 CSV 文件导入 MySQL 表的简单方法。

"There are any number of ways to input csv into mysql depending in what kind of access you have, if you can use the mysql client directly there is a command to load delimited data, something like that could basically be entered directly in cron and keep itself up to date. Otherwise there are various php scripts to do that sort of thing."

这是一个 friend 告诉我做的事情,这是最简单/最好的方法吗?如果是,有人介意向我解释一下吗?

谢谢

最佳答案

这是扩展 Mrgreen 的答案的分步:

  1. 安装 phpmyadmin
  2. 选择你的数据库
  3. 选择你的 table
  4. '导入'
  5. 选择您的 CSV 文件
  6. 将“导入文件的格式”设置为 CSV

关于mysql - 根据 CSV 文件检查注册,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/223802/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com