feat: 根目录文档、脚本、gitignore
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import io, sys, pymysql
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||
SRC = dict(host='192.168.3.200', user='root', password='PX4fTAAsJ#T!1',
|
||||
database='zentao_dev', charset='utf8mb4', connect_timeout=15)
|
||||
conn = pymysql.connect(**SRC); cur = conn.cursor()
|
||||
cur.execute("""SELECT column_name FROM information_schema.columns
|
||||
WHERE table_schema='zentao_dev' AND table_name='zt_story'
|
||||
AND (column_name LIKE '%%user%%' OR column_name LIKE '%%story%%')""")
|
||||
print([r[0] for r in cur.fetchall()])
|
||||
conn.close()
|
||||
Reference in New Issue
Block a user