用于填充 MySQL 表的 PHP 脚本 [英] PHP Script to populate MySQL tables

查看:31
本文介绍了用于填充 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 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆