摘要: # 服务端开启服务:python queryserver.py startimport phoenixdbimport phoenixdb.cursorurl = 'http://node1:8765/' conn = phoenixdb.connect(url, autocommit=True)c 阅读全文
posted @ 2020-03-03 21:00 舟山渔夫 阅读(708) 评论(0) 推荐(0) 编辑
摘要: centos 安装go环境1. 获取对应版本go linux环境包 这里是1.13.5wget -c https://studygolang.com/dl/golang/go1.13.5.linux-amd64.tar.gz 2. 解压包到/opt/目录下 # /home/gpadmin/gotar 阅读全文
posted @ 2020-01-05 19:42 舟山渔夫 阅读(2139) 评论(0) 推荐(0) 编辑
摘要: 新建角色python:可以登陆,继承权限CREATE role python WITH LOGIN ENCRYPTED PASSWORD '111111';新建模式temp,给python用户存放临时表CREATE SCHEMA temp;grant all on schema temp to py 阅读全文
posted @ 2019-12-29 15:36 舟山渔夫 阅读(2330) 评论(0) 推荐(0) 编辑
摘要: 创建heap堆表:主键,分布键(只能行存储)CREATE TABLE glfmkhjl ( id char(7) NOT NULL, name char(8) , birthday date, org_no char(6) , create_time timestamp, update_time t 阅读全文
posted @ 2019-12-14 15:26 舟山渔夫 阅读(1889) 评论(0) 推荐(0) 编辑
摘要: def test_exec(): codeBuffer = """from ccx_modu.ccxdbapi import *from ccx_modu.ccxfunctions import *from ccx_modu import ccxconfigdef add(x,y): print(x 阅读全文
posted @ 2019-10-28 21:53 舟山渔夫 阅读(899) 评论(0) 推荐(0) 编辑
摘要: def get_rights(n): R = "rwxrwxrwx" s = '' print(bin(n)) for i in range(8, -1, -1): #8-0 if ((n>>i) & 1) == 1: s = s + R[8-i] else: s = s + '-' print(i 阅读全文
posted @ 2019-10-15 21:39 舟山渔夫 阅读(1065) 评论(0) 推荐(0) 编辑
摘要: def load(): global myConn sql = "truncate table test" myConn.execute(sql) print('truncate table success') # 加参数也可 character set gbk # 换行键: \n==\x0A==c 阅读全文
posted @ 2019-10-12 20:44 舟山渔夫 阅读(590) 评论(0) 推荐(0) 编辑
摘要: windows7安装 Qt5.13.0 https://download.qt.io/official_releases/qt/5.13/5.13.0/下载: qt-opensource-windows-x86-5.13.0.exe,安装路径:D:\Qt,选择:MinGw32和Src 加入系统路径P 阅读全文
posted @ 2019-09-15 15:24 舟山渔夫 阅读(2002) 评论(0) 推荐(0) 编辑
摘要: login.py 阅读全文
posted @ 2019-09-07 20:56 舟山渔夫 阅读(2099) 评论(1) 推荐(0) 编辑
摘要: def do_install(pkgs): try: #import pip try: from pip._internal import main except Exception: from pip import main except ImportError: error_no_pip() # 阅读全文
posted @ 2019-08-31 13:00 舟山渔夫 阅读(668) 评论(0) 推荐(0) 编辑