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

查看:122
本文介绍了PHP脚本填充MySQL表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道一个脚本/类(最好在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.

有一个可用的这里我已经加入书签,但我还没有去尝试。

There is one available here which i had bookmarked but i haven't got around to trying it yet.

这篇关于PHP脚本填充MySQL表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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