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

让GPT们成为我们的小助手

任务:帮忙生成测试数据

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

ROUND 1 - 任务失败

输入

sql 复制代码
你好,我的用户表的定义如下:

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, 186,139 开头的,广东地区的手机号码。

请提供SQL脚本,我使用的是mysql 数据库。

Chat GPT响应

sql 复制代码
下面是根据你的要求生成用户数据的 SQL 脚本:
-- 插入测试数据
INSERT INTO `user` (`user_name`, `user_contact`)
SELECT CONCAT(last_name, first_name),
       CASE
           WHEN 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 (
    SELECT
        last_name,
        first_name
    FROM
        (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 (
    SELECT
        first_name
    FROM
        (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 - 生成最终结果

输入

sql 复制代码
你好,我的用户表的定义如下:

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 输出

sql 复制代码
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们帮我们干活,还得要有耐心,得一步一步的来,不要想着我们只需要一步就能得到自己想要的结果,有时候还得将任务进行拆解,循序渐进的来,才能得到最终的结果。

关注我的公众号

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

相关推荐
吕小明么6 小时前
OpenAI o3 “震撼” 发布后回归技术本身的审视与进一步思考
人工智能·深度学习·算法·aigc·agi
测试者家园8 小时前
ChatGPT生成接口文档的方法与实践
软件测试·chatgpt·测试用例·接口测试·接口文档·ai赋能·用chatgpt做软件测试
小虚竹12 小时前
如何利用ChatGPT生成不同类型的文章大纲
chatgpt
聆思科技AI芯片14 小时前
实操给桌面机器人加上超拟人音色
人工智能·机器人·大模型·aigc·多模态·智能音箱·语音交互
minos.cpp15 小时前
Mac上Stable Diffusion的环境搭建(还算比较简单)
macos·ai作画·stable diffusion·aigc
AI小欧同学1 天前
【AIGC-ChatGPT进阶副业提示词】育儿锦囊:化解日常育儿难题的实用指南
chatgpt·aigc
测试者家园1 天前
ChatGPT接口测试用例生成的流程
软件测试·chatgpt·测试用例·接口测试·测试图书·质量效能·用chatgpt做测试
剑盾云安全专家1 天前
AI加持,如何让PPT像开挂一键生成?
人工智能·aigc·powerpoint·软件
m0_748256561 天前
如何使用Python WebDriver爬取ChatGPT内容(完整教程)
开发语言·python·chatgpt
合合技术团队1 天前
高效准确的PDF解析工具,赋能企业非结构化数据治理
人工智能·科技·pdf·aigc·文档