让GPT们成为我们的小助手:使用ChatGPT来生成测试用数据

让GPT们成为我们的小助手

任务:帮忙生成测试数据

今天本来想做一个测试,所以需要一些测试数据。为了让测试显得更真实,所以希望测试数据看上去就是一份真实的数据,所以我就希望ChatGPT(这里是代指,我有使用多个AIGC的工具)能帮我来造数据。整个过程下来,经过了一些弯路,但最终还是得到了想要的结果,供大家参考和学习。

ROUND 1 - 任务失败

输入

你好,我的用户表的定义如下:CREATE TABLE `user` (`user_id` bigint NOT NULL AUTO_INCREMENT,`user_name` varchar(255) NOT NULL COMMENT '用户名',`user_contact` varchar(255) NOT NULL COMMENT '用户联系方式',`user_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '用户类型(1:普通用户,2:商家)',`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',`is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除',PRIMARY KEY (`user_id`),UNIQUE KEY `user_name` (`user_name`),UNIQUE KEY `user_contact` (`user_contact`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户表'我希望你帮我随机生成50个用户,用户名称你可以参考中国百家姓
比如:张翠三,李小龙,赵敏,钱多多,马小涛等等。联系方式是手机号码,
号码是130, 186139 开头的,广东地区的手机号码。请提供SQL脚本,我使用的是mysql 数据库。

Chat GPT响应

下面是根据你的要求生成用户数据的 SQL 脚本:
-- 插入测试数据
INSERT INTO `user` (`user_name`, `user_contact`)
SELECT CONCAT(last_name, first_name),CASEWHEN RAND() < 0.33 THEN CONCAT('130', LPAD(FLOOR(RAND() * 100000000), 8, '0'))WHEN RAND() < 0.67 THEN CONCAT('186', LPAD(FLOOR(RAND() * 100000000), 8, '0'))ELSE CONCAT('139', LPAD(FLOOR(RAND() * 100000000), 8, '0'))END AS user_contact
FROM (SELECTlast_name,first_nameFROM(SELECT '赵' AS last_name UNION ALL SELECT '钱' UNION ALL SELECT '孙' UNION ALL SELECT '李' UNION ALL SELECT '周' UNION ALL SELECT '吴' UNION ALL SELECT '郑' UNION ALL SELECT '王' UNION ALL SELECT '冯' UNION ALL SELECT '陈' UNION ALL SELECT '褚' UNION ALL SELECT '卫' UNION ALL SELECT '蒋' UNION ALL SELECT '沈' UNION ALL SELECT '韩' UNION ALL SELECT '杨' UNION ALL SELECT '朱' UNION ALL SELECT '秦' UNION ALL SELECT '尤' UNION ALL SELECT '许' UNION ALL SELECT '何' UNION ALL SELECT '吕' UNION ALL SELECT '施' UNION ALL SELECT '张' UNION ALL SELECT '孔' UNION ALL SELECT '曹' UNION ALL SELECT '严' UNION ALL SELECT '华' UNION ALL SELECT '金' UNION ALL SELECT '魏' UNION ALL SELECT '陶' UNION ALL SELECT '姜' UNION ALL SELECT '戚' UNION ALL SELECT '谢' UNION ALL SELECT '邹' UNION ALL SELECT '喻' UNION ALL SELECT '柏' UNION ALL SELECT '水' UNION ALL SELECT '窦' UNION ALL SELECT '章' UNION ALL SELECT '云' UNION ALL SELECT '苏' UNION ALL SELECT '潘' UNION ALL SELECT '葛' UNION ALL SELECT '奚' UNION ALL SELECT '范' UNION ALL SELECT '彭' UNION ALL SELECT '郎' UNION ALL SELECT '鲁' UNION ALL SELECT '韦' UNION ALL SELECT '昌' UNION ALL SELECT '马' UNION ALL SELECT '苗' UNION ALL SELECT '凤' UNION ALL SELECT '花' UNION ALL SELECT '方' UNION ALL SELECT '俞' UNION ALL SELECT '任' UNION ALL SELECT '袁' UNION ALL SELECT '柳' UNION ALL SELECT '酆' UNION ALL SELECT '鲍' UNION ALL SELECT '史' UNION ALL SELECT '唐' UNION ALL SELECT '费' UNION ALL SELECT '廉' UNION ALL SELECT '岑' UNION ALL SELECT '薛' UNION ALL SELECT '雷' UNION ALL SELECT '贺' UNION ALL SELECT '倪' UNION ALL SELECT '汤' UNION ALL SELECT '滕' UNION ALL SELECT '殷' UNION ALL SELECT '罗' UNION ALL SELECT '毕' UNION ALL SELECT '郝' UNION ALL SELECT '邬' UNION ALL SELECT '安' UNION ALL SELECT '常' UNION ALL SELECT '乐' UNION ALL SELECT '于' UNION ALL SELECT '时' UNION ALL SELECT '傅' UNION ALL SELECT '皮' UNION ALL SELECT '卞' UNION ALL SELECT '齐' UNION ALL SELECT '康' UNION ALL SELECT '伍' UNION ALL SELECT '余' UNION ALL SELECT '元' UNION ALL SELECT '卜' UNION ALL SELECT '顾' UNION ALL SELECT '孟' UNION ALL SELECT '平' UNION ALL SELECT '黄' UNION ALL SELECT '和' UNION ALL SELECT '穆' UNION ALL SELECT '萧' UNION ALL SELECT '尹' UNION ALL SELECT '姚' UNION ALL SELECT '邵' UNION ALL SELECT '湛' UNION ALL SELECT '汪' UNION ALL SELECT '祁' UNION ALL SELECT '毛' UNION ALL SELECT '禹' UNION ALL SELECT '狄' UNION ALL SELECT '米' UNION ALL SELECT '贝' UNION ALL SELECT '明' UNION ALL SELECT '臧' UNION ALL SELECT '计' UNION ALL SELECT '伏' UNION ALL SELECT '成' UNION ALL SELECT '戴' UNION ALL SELECT '谈' UNION ALL SELECT '宋' UNION ALL SELECT '茅' UNION ALL SELECT '庞' UNION ALL SELECT '熊' UNION ALL SELECT '纪' UNION ALL SELECT '舒' UNION ALL SELECT '屈' UNION ALL SELECT '项' UNION ALL SELECT '祝' UNION ALL SELECT '董' UNION ALL SELECT '梁' UNION ALL SELECT '杜' UNION ALL SELECT '阮' UNION ALL SELECT '蓝' UNION ALL SELECT '闵' UNION ALL SELECT '席' UNION ALL SELECT '季' UNION ALL SELECT '麻' UNION ALL SELECT '强' UNION ALL SELECT '贾' UNION ALL SELECT '路' UNION ALL SELECT '娄' UNION ALL SELECT '危' UNION ALL SELECT '江' UNION ALL SELECT '童' UNION ALL SELECT '颜' UNION ALL SELECT '郭' UNION ALL SELECT '梅' UNION ALL SELECT '盛' UNION ALL SELECT '林' UNION ALL SELECT '刁' UNION ALL SELECT '钟' UNION ALL SELECT '徐' UNION ALL SELECT '丘' UNION ALL SELECT '骆' UNION ALL SELECT '高' UNION ALL SELECT '夏' UNION ALL SELECT '蔡' UNION ALL SELECT '田' UNION ALL SELECT '樊' UNION ALL SELECT '胡' UNION ALL SELECT '凌' UNION ALL SELECT '霍' UNION ALL SELECT '虞' UNION ALL SELECT '万' UNION ALL SELECT '支' UNION ALL SELECT '柯' UNION ALL SELECT '昝' UNION ALL SELECT '管' UNION ALL SELECT '卢' UNION ALL SELECT '莫' UNION ALL SELECT '经' UNION ALL SELECT '房' UNION ALL SELECT '裘' UNION ALL SELECT '缪' UNION ALL SELECT '干' UNION ALL SELECT '解' UNION ALL SELECT '应' UNION ALL SELECT '宗' UNION ALL SELECT '丁' UNION ALL SELECT '宣' UNION ALL SELECT '贲' UNION ALL SELECT '邓' UNION ALL SELECT '郁' UNION ALL SELECT '单' UNION ALL SELECT '杭' UNION ALL SELECT '洪' UNION ALL SELECT '包' UNION ALL SELECT '诸' UNION ALL SELECT '左' UNION ALL SELECT '石' UNION ALL SELECT '崔' UNION ALL SELECT '吉' UNION ALL SELECT '钮' UNION ALL SELECT '龚' UNION ALL SELECT '程' UNION ALL SELECT '嵇' UNION ALL SELECT '邢' UNION ALL SELECT '滑' UNION ALL SELECT '裴' UNION ALL SELECT '陆' UNION ALL SELECT '荣' UNION ALL SELECT '翁' UNION ALL SELECT '荀' UNION ALL SELECT '羊' UNION ALL SELECT '於' UNION ALL SELECT '惠' UNION ALL SELECT '甄' UNION ALL SELECT '麹' UNION ALL SELECT '家' UNION ALL SELECT '封' UNION ALL SELECT '芮' UNION ALL SELECT '羿' UNION ALL SELECT '储' UNION ALL SELECT '靳' UNION ALL SELECT '汲' UNION ALL SELECT '邴' UNION ALL SELECT '糜' UNION ALL SELECT '松' UNION ALL SELECT '井' UNION ALL SELECT '段' UNION ALL SELECT '富' UNION ALL SELECT '巫' UNION ALL SELECT '乌' UNION ALL SELECT '焦' UNION ALL SELECT '巴' UNION ALL SELECT '弓' UNION ALL SELECT '牧' UNION ALL SELECT '隗' UNION ALL SELECT '山' UNION ALL SELECT '谷' UNION ALL SELECT '车' UNION ALL SELECT '侯' UNION ALL SELECT '宓' UNION ALL SELECT '蓬' UNION ALL SELECT '全' UNION ALL SELECT '郗' UNION ALL SELECT '班' UNION ALL SELECT '仰' UNION ALL SELECT '秋' UNION ALL SELECT '仲' UNION ALL SELECT '伊' UNION ALL SELECT '宫' UNION ALL SELECT '宁' UNION ALL SELECT '仇' UNION ALL SELECT '栾' UNION ALL SELECT '暴' UNION ALL SELECT '甘' UNION ALL SELECT '钭' UNION ALL SELECT '厉' UNION ALL SELECT '戎' UNION ALL SELECT '祖' UNION ALL SELECT '武' UNION ALL SELECT '符' UNION ALL SELECT '刘' UNION ALL SELECT '景' UNION ALL SELECT '詹' UNION ALL SELECT '束' UNION ALL SELECT '龙' UNION ALL SELECT '叶' UNION ALL SELECT '幸' UNION ALL SELECT '司' UNION ALL SELECT '韶' UNION ALL SELECT '郜' UNION ALL SELECT '黎' UNION ALL SELECT '蓟' UNION ALL SELECT '溥' UNION ALL SELECT '印' UNION ALL SELECT '宿' UNION ALL SELECT '白' UNION ALL SELECT '怀' UNION ALL SELECT '蒲' UNION ALL SELECT '邰' UNION ALL SELECT '从' UNION ALL SELECT '鄂' UNION ALL SELECT '索' UNION ALL SELECT '咸' UNION ALL SELECT '籍' UNION ALL SELECT '赖' UNION ALL SELECT '卓' UNION ALL SELECT '蔺' UNION ALL SELECT '屠' UNION ALL SELECT '蒙' UNION ALL SELECT '池' UNION ALL SELECT '乔' UNION ALL SELECT '阴' UNION ALL SELECT '郁' UNION ALL SELECT '胥' UNION ALL SELECT '能' UNION ALL SELECT '苍' UNION ALL SELECT '双' UNION ALL SELECT '闻' UNION ALL SELECT '莘' UNION ALL SELECT '党' UNION ALL SELECT '翟' UNION ALL SELECT '谭' UNION ALL SELECT '贡' UNION ALL SELECT '劳' UNION ALL SELECT '逄' UNION ALL SELECT '姬' UNION ALL SELECT '申' UNION ALL SELECT '扶' UNION ALL SELECT '堵' UNION ALL SELECT '冉' UNION ALL SELECT '宰' UNION ALL SELECT '郦' UNION ALL SELECT '雍' UNION ALL SELECT '舄' UNION ALL SELECT '璩' UNION ALL SELECT '桑' UNION ALL SELECT '桂' UNION ALL SELECT '濮' UNION ALL SELECT '牛' UNION ALL SELECT '寿' UNION ALL SELECT '通' UNION ALL SELECT '边' UNION ALL SELECT '扈' UNION ALL SELECT '燕' UNION ALL SELECT '冀' UNION ALL SELECT '郏' UNION ALL SELECT '浦' UNION ALL SELECT '尚' UNION ALL SELECT '农' UNION ALL SELECT '温' UNION ALL SELECT '别' UNION ALL SELECT '庄' UNION ALL SELECT '晏' UNION ALL SELECT '柴' UNION ALL SELECT '瞿' UNION ALL SELECT '阎' UNION ALL SELECT '充' UNION ALL SELECT '慕' UNION ALL SELECT '连' UNION ALL SELECT '茹' UNION ALL SELECT '习' UNION ALL SELECT '宦' UNION ALL SELECT '艾' UNION ALL SELECT '鱼' UNION ALL SELECT '容' UNION ALL SELECT '向' UNION ALL SELECT '古' UNION ALL SELECT '易' UNION ALL SELECT '慎' UNION ALL SELECT '戈' UNION ALL SELECT '廖' UNION ALL SELECT '庾' UNION ALL SELECT '终' UNION ALL SELECT '暨' UNION ALL SELECT '居' UNION ALL SELECT '衡' UNION ALL SELECT '步' UNION ALL SELECT '都' UNION ALL SELECT '耿' UNION ALL SELECT '满' UNION ALL SELECT '弘' UNION ALL SELECT '匡' UNION ALL SELECT '国' UNION ALL SELECT '文' UNION ALL SELECT '寇' UNION ALL SELECT '广' UNION ALL SELECT '禄' UNION ALL SELECT '阙' UNION ALL SELECT '东' UNION ALL SELECT '欧' UNION ALL SELECT '殳' UNION ALL SELECT '沃' UNION ALL SELECT '利' UNION ALL SELECT '蔚' UNION ALL SELECT '越' UNION ALL SELECT '夔' UNION ALL SELECT '隆' UNION ALL SELECT '师' UNION ALL SELECT '巩' UNION ALL SELECT '厍' UNION ALL SELECT '聂' UNION ALL SELECT '晁' UNION ALL SELECT '勾' UNION ALL SELECT '敖' UNION ALL SELECT '融' UNION ALL SELECT '冷' UNION ALL SELECT '訾' UNION ALL SELECT '辛' UNION ALL SELECT '阚' UNION ALL SELECT '那' UNION ALL SELECT '简' UNION ALL SELECT '饶' UNION ALL SELECT '空' UNION ALL SELECT '曾' UNION ALL SELECT '毋' UNION ALL SELECT '沙' UNION ALL SELECT '乜' UNION ALL SELECT '养' UNION ALL SELECT '鞠' UNION ALL SELECT '须' UNION ALL SELECT '丰' UNION ALL SELECT '巢' UNION ALL SELECT '关' UNION ALL SELECT '蒯' UNION ALL SELECT '相' UNION ALL SELECT '查' UNION ALL SELECT '後' UNION ALL SELECT '荆' UNION ALL SELECT '红' UNION ALL SELECT '游' UNION ALL SELECT '竺' UNION ALL SELECT '权' UNION ALL SELECT '逯' UNION ALL SELECT '盖' UNION ALL SELECT '益' UNION ALL SELECT '桓' UNION ALL SELECT '公' UNION ALL SELECT '晋' UNION ALL SELECT '楚' UNION ALL SELECT '法' UNION ALL SELECT '汝' UNION ALL SELECT '鄢' UNION ALL SELECT '涂' UNION ALL SELECT '钦' UNION ALL SELECT '段干' UNION ALL SELECT '百里' UNION ALL SELECT '东郭' UNION ALL SELECT '南门' UNION ALL SELECT '呼延' UNION ALL SELECT '归海' UNION ALL SELECT '羊舌' UNION ALL SELECT '微生' UNION ALL SELECT '岳' UNION ALL SELECT '帅' UNION ALL SELECT '缑' UNION ALL SELECT '亢' UNION ALL SELECT '况' UNION ALL SELECT '有' UNION ALL SELECT '琴' UNION ALL SELECT '梁丘' UNION ALL SELECT '左丘' UNION ALL SELECT '东门' UNION ALL SELECT '西门' UNION ALL SELECT '商' UNION ALL SELECT '牟' UNION ALL SELECT '佘' UNION ALL SELECT '佴' UNION ALL SELECT '伯' UNION ALL SELECT '赏' UNION ALL SELECT '南宫' UNION ALL SELECT '墨' UNION ALL SELECT '哈' UNION ALL SELECT '谯' UNION ALL SELECT '笪' UNION ALL SELECT '年' UNION ALL SELECT '爱' UNION ALL SELECT '阳' UNION ALL SELECT '佟' UNION ALL SELECT '言' UNION ALL SELECT '福'
) AS last_names
CROSS JOIN (SELECTfirst_nameFROM(SELECT '旭' AS first_name UNION ALL SELECT '光' UNION ALL SELECT '良' UNION ALL SELECT '俊' UNION ALL SELECT '勇' UNION ALL SELECT '杰' UNION ALL SELECT '辉' UNION ALL SELECT '平' UNION ALL SELECT '东' UNION ALL SELECT '文' UNION ALL SELECT '明' UNION ALL SELECT '永' UNION ALL SELECT '健' UNION ALL SELECT '军' UNION ALL SELECT '梅' UNION ALL SELECT '志' UNION ALL SELECT '强' UNION ALL SELECT '敏' UNION ALL SELECT '磊' UNION ALL SELECT '丽' UNION ALL SELECT '静' UNION ALL SELECT '青' UNION ALL SELECT '华' UNION ALL SELECT '巧' UNION ALL SELECT '兰' UNION ALL SELECT '凤' UNION ALL SELECT '芳' UNION ALL SELECT '莉' UNION ALL SELECT '秀' UNION ALL SELECT '英' UNION ALL SELECT '华' UNION ALL SELECT '慧' UNION ALL SELECT '巧' UNION ALL SELECT '美' UNION ALL SELECT '娟' UNION ALL SELECT '瑞' UNION ALL SELECT '凯' UNION ALL SELECT '琳' UNION ALL SELECT '飞' UNION ALL SELECT '明' UNION ALL SELECT '伟' UNION ALL SELECT '丽' UNION ALL SELECT '红' UNION ALL SELECT '敏' UNION ALL SELECT '静' UNION ALL SELECT '燕' UNION ALL SELECT '丽' UNION ALL SELECT '强' UNION ALL SELECT '平' UNION ALL SELECT '刚' UNION ALL SELECT '勇' UNION ALL SELECT '军' UNION ALL SELECT '涛' UNION ALL SELECT '杰' UNION ALL SELECT '超' UNION ALL SELECT '文' UNION ALL SELECT '明' UNION ALL SELECT '亮' UNION ALL SELECT '斌' UNION ALL SELECT '强' UNION ALL SELECT '刚' UNION ALL SELECT '健' UNION ALL SELECT '洋' UNION ALL SELECT '涛' UNION ALL SELECT '旭' UNION ALL SELECT '东' UNION ALL SELECT '华' UNION ALL SELECT '志' UNION ALL SELECT '敏' UNION ALL SELECT '亮' UNION ALL SELECT '强' UNION ALL SELECT '军' UNION ALL SELECT '涛' UNION ALL SELECT '志' UNION ALL SELECT '建' UNION ALL SELECT '晓' UNION ALL SELECT '磊' UNION ALL SELECT '鹏' UNION ALL SELECT '伟' UNION ALL SELECT '刚' UNION ALL SELECT '阳' UNION ALL SELECT '宇' UNION ALL SELECT '峰' UNION ALL SELECT '超' UNION ALL SELECT '强' UNION ALL SELECT '鹏' UNION ALL SELECT '杰' UNION ALL SELECT '军' UNION ALL SELECT '洋' UNION ALL SELECT '涛' UNION ALL SELECT '勇' UNION ALL SELECT '鹏' UNION ALL SELECT '涛' UNION ALL SELECT '鹏' UNION ALL SELECT '阳' UNION ALL SELECT '林' UNION ALL SELECT '国' UNION ALL SELECT '庆' UNION ALL SELECT '家' UNION ALL SELECT '琪' UNION ALL SELECT '建' UNION ALL SELECT '军' UNION ALL SELECT '红' UNION ALL SELECT '林' UNION ALL SELECT '玉' UNION ALL SELECT '建' UNION ALL SELECT '平' UNION ALL SELECT '振' UNION ALL SELECT '超' UNION ALL SELECT '文' UNION ALL SELECT '霞' UNION ALL SELECT '志' UNION ALL SELECT '伟' UNION ALL SELECT '磊' UNION ALL SELECT '琴' UNION ALL SELECT '梅' UNION ALL SELECT '英' UNION ALL SELECT '强' UNION ALL SELECT '青' UNION ALL SELECT '杰' UNION ALL SELECT '丽' UNION ALL SELECT '艳' UNION ALL SELECT '娜' UNION ALL SELECT '勇' UNION ALL SELECT '军' UNION ALL SELECT '晶' UNION ALL SELECT '浩' UNION ALL SELECT '楠' UNION ALL SELECT '楠' UNION ALL SELECT '璐' UNION ALL SELECT '建' UNION ALL SELECT '芳' UNION ALL SELECT '宇' UNION ALL SELECT '彬' UNION ALL SELECT '志' UNION ALL SELECT '丽' UNION ALL SELECT '娜' UNION ALL SELECT '婷' UNION ALL SELECT '琳' UNION ALL SELECT '超' UNION ALL SELECT '欢' UNION ALL SELECT '阳' UNION ALL SELECT '雪' UNION ALL SELECT '青' UNION ALL SELECT '阳' UNION ALL SELECT '鑫' UNION ALL SELECT '丹' UNION ALL SELECT '静' UNION ALL SELECT '晨' UNION ALL SELECT '玲' UNION ALL SELECT '佳' UNION ALL SELECT '秀' UNION ALL SELECT '君' UNION ALL SELECT '宇' UNION ALL SELECT '宏' UNION ALL SELECT '宇' UNION ALL SELECT '鑫' UNION ALL SELECT '鑫' UNION ALL SELECT '军' UNION ALL SELECT '鹏' UNION ALL SELECT '芳' UNION ALL SELECT '丽' UNION ALL SELECT '敏' UNION ALL SELECT '洁' UNION ALL SELECT '洁' UNION ALL SELECT '刚' UNION ALL SELECT '欣' UNION ALL SELECT '瑞' UNION ALL SELECT '东' UNION ALL SELECT '华' UNION ALL SELECT '鑫' UNION ALL SELECT '宁' UNION ALL SELECT '梅' UNION ALL SELECT '红' UNION ALL SELECT '丽' UNION ALL SELECT '林' UNION ALL SELECT '雪' UNION ALL SELECT '霞' UNION ALL SELECT '红' UNION ALL SELECT '鹏' UNION ALL SELECT '鑫' UNION ALL SELECT '志' UNION ALL SELECT '勇' UNION ALL SELECT '军' UNION ALL SELECT '欣' UNION ALL SELECT '萍' UNION ALL SELECT '颖' UNION ALL SELECT '玲' UNION ALL SELECT '云' UNION ALL SELECT '丹' UNION ALL SELECT '艳' UNION ALL SELECT '瑶' UNION ALL SELECT '敏' UNION ALL SELECT '玲' UNION ALL SELECT '琳' UNION ALL SELECT '雯' UNION ALL SELECT '萍' UNION ALL SELECT '静' UNION ALL SELECT '凤' UNION ALL SELECT '玲' UNION ALL SELECT '琴' UNION ALL SELECT '婷' UNION ALL SELECT '欣' UNION ALL SELECT '娜' UNION ALL SELECT '玉' UNION ALL SELECT '凯' UNION ALL SELECT '军' UNION ALL SELECT '慧' UNION ALL SELECT '芳' UNION ALL SELECT '欢' UNION ALL SELECT '珍' UNION ALL SELECT '媛' UNION ALL SELECT '琳' UNION ALL SELECT '婷' UNION ALL SELECT '秋' UNION ALL SELECT '雪' UNION ALL SELECT '燕' UNION ALL SELECT '玲' UNION ALL SELECT '丽' UNION ALL SELECT '静' UNION ALL SELECT '敏' UNION ALL SELECT '洁' UNION ALL SELECT '敏' UNION ALL SELECT '琴' UNION ALL SELECT '琳' UNION ALL SELECT '美' UNION ALL SELECT '娟' UNION ALL SELECT '霞' UNION ALL SELECT '秀' UNION ALL SELECT '萍' UNION ALL SELECT '莉' UNION ALL SELECT '秀' UNION ALL SELECT '荣' UNION ALL SELECT '梅' UNION ALL SELECT '梅' UNION ALL SELECT '敏' UNION ALL SELECT '美' UNION ALL SELECT '珊' UNION ALL SELECT '琳' UNION ALL SELECT '丹' UNION ALL SELECT '婷' UNION ALL SELECT '艳' UNION ALL SELECT '婷' UNION ALL SELECT '瑞' UNION ALL SELECT '芬' UNION ALL SELECT '丽' UNION ALL SELECT '婷' UNION ALL SELECT '秀' UNION ALL SELECT '珍' UNION ALL SELECT '云' UNION ALL SELECT '秋' UNION ALL SELECT '芳' UNION ALL SELECT '红' UNION ALL SELECT '娜' UNION ALL SELECT '雯' UNION ALL SELECT '英' UNION ALL SELECT '慧' UNION ALL SELECT '丽' UNION ALL SELECT '丽' UNION ALL SELECT '梅' UNION ALL SELECT '敏' UNION ALL SELECT '芳' UNION ALL SELECT '芳' UNION ALL SELECT '芳' UNION ALL SELECT '萍' UNION ALL SELECT '萍' UNION ALL SELECT '娜' UNION ALL SELECT '婷' UNION ALL SELECT '红' UNION ALL SELECT '玉' UNION ALL SELECT '慧' UNION ALL SELECT '雪' UNION ALL SELECT '芳' UNION ALL SELECT '霞' UNION ALL SELECT '梅' UNION ALL SELECT '秀' UNION ALL SELECT '梅' UNION ALL SELECT '红' UNION ALL SELECT '慧' UNION ALL SELECT '艳' UNION ALL SELECT '婷' UNION ALL SELECT '婷' UNION ALL SELECT '梅' UNION ALL SELECT '梅' UNION ALL SELECT '芳' UNION ALL SELECT '芳' UNION ALL SELECT '霞' UNION ALL SELECT '丽' UNION ALL SELECT '艳' UNION ALL SELECT '艳' UNION ALL SELECT '艳' UNION ALL SELECT '莉' UNION ALL SELECT '丽' UNION ALL SELECT '娜' UNION ALL SELECT '丹' UNION ALL SELECT '丹' UNION ALL SELECT '婷' UNION ALL SELECT '丽' UNION ALL SELECT '丽' UNION ALL SELECT '燕' UNION ALL SELECT '秀' UNION ALL SELECT '芳' UNION ALL SELECT '慧' UNION ALL SELECT '霞' UNION ALL SELECT '娟' UNION ALL SELECT '娟' UNION ALL SELECT '玉' UNION ALL SELECT '芳' UNION ALL SELECT '艳' UNION ALL SELECT '梅' UNION ALL SELECT '梅' UNION ALL SELECT '瑞' UNION ALL SELECT '慧' UNION ALL SELECT '丽' UNION ALL SELECT '梅' UNION ALL SELECT '萍' UNION ALL SELECT '艳' UNION ALL SELECT '婷' UNION ALL SELECT '莉' UNION ALL SELECT '莉' UNION ALL SELECT '美' UNION ALL SELECT '珊' UNION ALL SELECT '珊' UNION ALL SELECT '梅' UNION ALL SELECT '秀' UNION ALL SELECT '瑞' UNION ALL SELECT '萍' UNION ALL SELECT '琳' UNION ALL SELECT '丹' UNION ALL SELECT '芳' UNION ALL SELECT '芳' UNION ALL SELECT '慧' UNION ALL SELECT '娟' UNION ALL SELECT '梅' UNION ALL SELECT '梅' UNION ALL SELECT '慧' UNION ALL SELECT '慧' UNION ALL SELECT '丹' UNION ALL SELECT '婷' UNION ALL SELECT '慧' UNION ALL SELECT '慧' UNION ALL SELECT '慧' UNION ALL SELECT '丽' UNION ALL SELECT '琳' UNION ALL SELECT '丽' UNION ALL SELECT '丽' UNION ALL SELECT '瑞' UNION ALL SELECT '娟' UNION ALL SELECT '珊' UNION ALL SELECT '梅' UNION ALL SELECT '丹' UNION ALL SELECT '丹'

分析

上面的SQL实际上还同有生成完,ChatGPT一直在让我点击“Continue Generating”,似乎限入了百家姓生成的死循环里面,出不来了。

不过我们可以看出ChatGPT还是蛮努力的,完全想通过SQL来随机生成姓名。
此法不通,我们只能另想其它办法。

ROUND 2 - 任务拆解

输入1

你好,请参考中国百家姓,随机取10个姓,为我生成50个姓名。

ChatGPT 输出

好的,请稍等,我来为您生成。以下是50个姓名,来自中国百家姓:1. 张旭
2. 王光
3. 李良
4. 刘俊
5. 陈勇
。
。
。
47. 巩强
48. 阮鹏
49. 邵鹏
50. 万涛希望这符合您的要求!

输入2

你好,请参考中国百家姓,随机取10个姓,为我生成50个姓名,有2个字的,有3个字的。

ChatGPT 输出

好的,我来生成符合您要求的姓名。以下是50个姓名,包括10个姓氏,有2个字的和有3个字的各半:1. 张旭明
2. 王光芳
3. 李良华
4. 刘俊杰
5. 陈勇军
。
。
。
46. 邱超超
47. 巩强强
48. 阮鹏鹏
49. 熊峰峰
50. 万涛涛希望这些姓名符合您的要求!

这个结果不太符合预期,有以下两点错误:

  • 全部是3个字的
  • 后面有一些使用了叠词,比如:涛涛,峰峰,超超

输入3

你刚刚生成的名字,全是三个字的。请重新生成。

ChatGPT 输出

抱歉,我犯了一个错误。让我重新生成符合您要求的姓名,包括2个字和3个字的各半。以下是50个姓名:1. 张旭
2. 王光
3. 李良
4. 刘俊
。
。
。
48. 阮鹏
49. 邵鹏
50. 万涛这些姓名包括了随机选择的10个姓氏,并且在长度上有2个字和3个字各半。希望这符合您的要求!

ChatGPT已经被搞晕了,就是没有按照要求来生成。

ROUND 3 - 换助手:Gemini,你来!

输入1

我希望你帮我随机生成50个姓名,可以参考中国百家姓,取10种姓,随机生成30个用户 比如:张翠三,李小龙,赵敏,钱多多,马小涛等等。
请列出50个姓名。

Gemini 输出

Here are 50 random Chinese names generated using 10 common surnames:1. 张翠三 (Zhāng Cuìsān)
2. 李小龙 (Lǐ Xiǎolóng)
3. 赵敏 (Zhào Mǐn)
。
。
。
48. 谭晓梅 (Tán Xiǎoméi)
49. 廖子涵 (Liào Zǐhán)
50. 汪晓彤 (Wāng Xiǎotóng)

分析

结果还算可以,生成了50个姓名,但我不需要拼音,于是让Gemini帮我处理一下。

输入2

请帮我把下面内容中的非中文字符去掉,只返回下面内容中的中文字符
张翠三 (Zhāng Cuìsān)
李小龙 (Lǐ Xiǎolóng)
赵敏 (Zhào Mǐn)
。
。
。

Gemini 输出

Sure, here is the list of Chinese characters extracted from the provided text:张翠三
李小龙
赵敏
钱多多
。
。
。

ROUND 4 - 生成手机号

输入1

你好,请帮我使用 135, 136, 137, 138, 181, 185, 186 开头,3801, 3814, 4409, 5488, 6078, 5230 为中间4位,后4位随机,随机生成50个手机号码。

ChatGPT输出

好的,以下是根据你提供的要求生成的50个手机号码:1353801XXXX
1363814XXXX
1374409XXXX
1385488XXXX
。
。
。请注意,"XXXX" 表示后四位是随机生成的数字。

不知道是我描述的不够清楚,生成的结果自动“脱敏”了。

输入2

请帮我将XXXX用随机生成的数来代替

ChatGPT 输出2

好的,我来生成随机的后四位数字,并将它们替换到手机号中:135380163
136381418
137440957
138548831
。
。
。

ChatGPT又犯错了,后4位,只给了2位,还得继续调教。

输入3

错了,后4位随机,不是2位随机例如:13538147788

ChatGPT 输出3

抱歉,我误解了你的要求。让我来修正生成后四位随机的手机号码:1. 13538019385
2. 13638147081
3. 13744096513
。
。
。
47. 18160785487
48. 18552307356
49. 18638012680
50. 13538140974以上是根据你的要求生成的50个手机号码,每个手机号的后四位均为随机生成。

总算是得到了第二份想要的数据。现在就可以根据获得的数据生成最终的结果了。

Final Round - 生成最终结果

输入

你好,我的用户表的定义如下:CREATE TABLE `user` (`user_id` bigint NOT NULL AUTO_INCREMENT,`user_name` varchar(255) NOT NULL COMMENT '用户名',`user_contact` varchar(255) NOT NULL COMMENT '用户联系方式',`user_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '用户类型(1:普通用户,2:商家)',`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',`is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除',PRIMARY KEY (`user_id`),UNIQUE KEY `user_name` (`user_name`),UNIQUE KEY `user_contact` (`user_contact`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户表'我有如下姓名和手机号码,请根据下面提供的信息,帮我生成用户表的插入语句,帮我插入这50个用户信息。
张翠三
李小龙
赵敏
。
。
。
13538019385
13638147081
13744096513
。
。
。

ChatGPT 输出

INSERT INTO `user` (`user_name`, `user_contact`, `user_type`, `create_time`, `update_time`, `is_deleted`) VALUES
('张翠三', '13538019385', 1, NOW(), NOW(), 0),
('李小龙', '13638147081', 1, NOW(), NOW(), 0),
('赵敏', '13744096513', 1, NOW(), NOW(), 0),
。
。
。
('廖子涵', '18638012680', 1, NOW(), NOW(), 0);

分析

通过这个,我们可以看得出来,想要让GPT们帮我们干活,还得要有耐心,得一步一步的来,不要想着我们只需要一步就能得到自己想要的结果,有时候还得将任务进行拆解,循序渐进的来,才能得到最终的结果。

关注我的公众号

欢迎大家关注、点赞、转发,一起交流软件开发、架构设计、云原生技术。
TXZQ聊IT技术与架构

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/685538.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

ETL中如何执行Python脚本

Python的解读 Python 是一种高级、通用的编程语言&#xff0c;由荷兰程序员吉多范罗苏姆&#xff08;Guido van Rossum&#xff09;于1990年代初设计并发布。Python的设计哲学强调代码的可读性和简洁性&#xff0c;它的语法清晰且表达力强&#xff0c;使得开发者能够以更少的代…

解析Spring中的循环依赖问题:初探三级缓存

什么是循环依赖&#xff1f; 这个情况很简单&#xff0c;即A对象依赖B对象&#xff0c;同时B对象也依赖A对象&#xff0c;让我们来简单看一下。 // A依赖了B class A{public B b; }// B依赖了A class B{public A a; }这种循环依赖可能会引发问题吗&#xff1f; 在没有考虑Sp…

Linux 操作系统多路IO复用

1.多路IO复用 多路I/O复用是通过一种机制&#xff0c;可以监视多个描述符&#xff0c;一旦某个描述符就绪&#xff08;一般是读就绪或者写就绪&#xff09;&#xff0c;能够通知程序进行相应的读写操作。 这个机制能够通过select/poll/eroll等来使用。这些函数都可以同时监视多…

ICode国际青少年编程竞赛- Python-3级训练场-能量状态判断1

ICode国际青少年编程竞赛- Python-3级训练场-能量状态判断1 1、 for i in range(6):Spaceship.step(2)if not Item[i].broken():Spaceship.turnLeft()Spaceship.step(4)Spaceship.turnLeft()Spaceship.turnLeft()Spaceship.step(4)Spaceship.turnLeft()2、 for i in range(6)…

每日一题——力扣27. 移除元素(举一反三)

题目链接&#xff1a;https://leetcode.cn/problems/remove-element/description/ 菜鸡写法&#xff1a; // 函数定义&#xff0c;移除数组nums中所有值为val的元素&#xff0c;并返回新的数组长度 int removeElement(int* nums, int numsSize, int val) {// 如果数组长度为…

聚观早报 | 苹果新款iPad Pro发布;国产特斯拉4月交付量

聚观早报每日整理最值得关注的行业重点事件&#xff0c;帮助大家及时了解最新行业动态&#xff0c;每日读报&#xff0c;就读聚观365资讯简报。 整理丨Cutie 5月9日消息 苹果新款iPad Pro发布 国产特斯拉4月交付量 iOS 18新功能爆料 真我GT Neo6续航细节 三星Galaxy Z F…

java图片水印字体乱码问题

问题描述&#xff1a;在linux Centos-7.5_64bit系统的其他服务器上不乱码&#xff0c;在部署项目的正式服务器乱码 水印字体设置是 微软雅黑 Font wordFont new Font("微软雅黑", Font.ITALIC,(srcImgHeightsrcImgWidth)/50); 一.Springboot项目&#xff0c;部署在…

文献速递:深度学习医学影像心脏疾病检测与诊断--基于迁移学习的生成对抗网络用于静态和动态心脏PET的衰减校正

Title 题目 Transfer learning‑based attenuation correction for static and dynamic cardiac PET using a generative adversarial network 基于迁移学习的生成对抗网络用于静态和动态心脏PET的衰减校正 01 文献速递介绍 心脏正电子发射断层扫描&#xff08;PET&#xf…

Redis 支持的 Java 客户端都有哪些?

Redis 是一种高性能的键值存储系统&#xff0c;它以其快速、灵活和可扩展的特性而闻名。在 Java 开发中&#xff0c;与 Redis 交互的方式通常是通过使用 Redis 的 Java 客户端。 这些客户端提供了访问 Redis 数据库的接口&#xff0c;使开发人员能够在 Java 应用程序中轻松地使…

伦敦金交易常识 原来可以这样分类

如果投资者想做好伦敦金交易&#xff0c;对市场中的伦敦金交易常识等等都需要加以学习和研究&#xff0c;别小看那些伦敦金交易常识&#xff0c;很多高深的交易策略也是从常识出发慢慢建立起来的。伦敦金交易常识可以分为几类&#xff0c;下面我们就来讨论一下。 伦敦金市场的基…

Git 如何管理标签命令(tag)

1.查看本地仓库tag --1.查看本地仓库tag UserDESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master) $ git tag 1stBossUpgrade V10.0.1_20220224_test V10.0.1_20220301_test tag-gwfrontend-V1.0.12-230625 tag-gw_frontend-23.08.29 tag-gw_f…

Docker快速搭建NAS服务——FileBrowser

Docker快速搭建NAS服务——FileBrowser 文章目录 前言FileBrowser的搭建docker-compose文件编写运行及访问 总结 前言 本文主要讲解如何使用docker在本地快速搭建NAS服务&#xff0c;这里主要写如下两种&#xff1a; FileBrowser1&#xff1a;是一个开源的Web文件管理器&…