用于填充 MySQL 表的 PHP 脚本

PHP Script to populate MySQL tables(用于填充 MySQL 表的 PHP 脚本)
本文介绍了用于填充 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 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)