使用python中的随机数据填充mysql表 [英] Populate mysql table with random data in python

查看:250
本文介绍了使用python中的随机数据填充mysql表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在python中创建一个mysql表,然后用随机数据填充它。我想要大约10000行和整数值可以工作。

How can create a mysql table in python and then populate it with random data.I want around 10000 rows and integer values will do work.

推荐答案

你的问题不是很清楚(想在python中生成一个表,并用随机数据填充它)。

Your question is not very clear (want to generate a table in python AND fill it with random data?).

手动执行,使用 random 生成随机数。 查看!执行一个小型逻辑,周期为填写您的行(如果您不知道如何,在此论坛中搜索或询问。)。

Well, if you want to do it by hand, generate the random number using random. Check it out! Do a mini-logic with a cycle to fill your rows (if you don't know how, search in this forum or ask.).

此外,请检查这里(我没有使用它!): psyert

Also, check here (I haven't used it!): psyert

:您的问题已系统性降级。请查看StackOverflow的常见问题,看看如何做一个正确的优雅问题。如果英语不是你的母语,不要担心,但至少使用标点符号,并从在线翻译获得帮助。

Mini-note: your questions have been systematically downrated. Please, check the FAQ of StackOverflow and see how to do a proper elegant question. If English is not your native language, don't worry, but at least use the punctuation and get help from an online translator.

这篇关于使用python中的随机数据填充mysql表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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