Skip to content

Instantly share code, notes, and snippets.

View wd0517's full-sized avatar

WD wd0517

  • ChengDu, China
  • 18:15 (UTC +08:00)
View GitHub Profile
@wd0517
wd0517 / README.md
Created July 13, 2023 06:16
README

Hi

@wd0517
wd0517 / auto-gpt-test.log
Last active April 12, 2023 03:01
find tidb's latest stable version
 Auto-GPT ❯ python scripts/main.py --continuous
Continuous Mode: ENABLED
WARNING: Continuous mode is not recommended. It is potentially dangerous and may cause your AI to run forever or carry out actions you would not usually authorise. Use at your own risk.
Welcome back! Would you like me to return to being TiDB-DBA-GPT2?
Continue with the last settings?
Name: TiDB-DBA-GPT2
Role: an AI designed to answer TiDB related quetions (TiDB is developed by PingCAP, its documents locate in https://docs.pingcap.com/)
Goals: ['explain what is TiDB', "find TiDB's latest stable version", 'shutdown upon acheive your goal']
Continue (y/n): y
Using memory of type: RedisMemory
CREATE TABLE `t1` (
`jdoc` json DEFAULT NULL
)
insert into t1 values ('[3,4]');
insert into t1 values ('[1,2]');
# https://stackoverflow.com/questions/39906435/convert-json-array-in-mysql-to-rows
SELECT
City City_Admaster City_EN Province Province_EN Region Tier
七台河 七台河市 Qitaihe 黑龙江 Heilongjiang North Tier 5
三亚 三亚市 Sanya 海南 Hainan South Tier 3
三明 三明市 Sanming 福建 Fujian East Tier 4
三门峡 三门峡市 Sanmenxia 河南 Henan North Tier 5
上海 上海市 Shanghai 上海 Shanghai East Tier 1
上饶 上饶市 Shangrao 江西 Jiangxi South Tier 3
东莞 东莞市 Dongguan 广东 Guangdong South new Tier 1
东营 东营市 Dongying 山东 Shandong North Tier 4
中卫 中卫市 Zhongwei 宁夏 Ningxia West Tier 5
@wd0517
wd0517 / province_city.json
Last active August 15, 2022 07:17
中国省市级行政区数据 31 个省,不包括港澳台,前后端交互应使用 statistical_code (统计学代码) 数据来源:http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2020/
[
{
"statistical_code": "110000000000",
"code": "11",
"name": "北京市",
"cities": [
{
"statistical_code": "110100000000",
"code": "1101",
"name": "市辖区"