PHP Script to populate MySQL tables(用于填充 MySQL 表的 PHP 脚本)
问题描述
有谁知道 script/class(最好是 PHP)会解析给定的 MySQL 表的结构,然后用 x 行数填充它 基于字段类型的随机测试数据?
Is anyone aware of a script/class (preferably in PHP) that would parse a given MySQL table's structure and then fill it with x number of rows of random test data based on the field types?
我从未见过或听说过这样的事情,我想我会在自己写之前检查一下.
I have never seen or heard of something like this and thought I would check before writing one myself.
推荐答案
你所追求的将是一个数据生成器.
What you are after would be a data generator.
here 有一个可用的,我已将其添加为书签,但我还没有开始尝试.
There is one available here which i had bookmarked but i haven't got around to trying it yet.
这篇关于用于填充 MySQL 表的 PHP 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:用于填充 MySQL 表的 PHP 脚本
基础教程推荐
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 如何替换eregi() 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
