PHP Script to populate MySQL tables

烈酒焚心 提交于 2020-01-10 18:16:25

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/19162/php-script-to-populate-mysql-tables

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!