摘要:
assert 断言 def div(num1, num2): # 断言 assert isinstance(num1, int), "值类型错误" assert isinstance(num2, int), "值类型错误" assert num2 != 0, "除数不为0" return num1 阅读全文
posted @ 2019-12-23 22:57
阿里云的奥斯卡
阅读(279)
评论(0)
推荐(0)
摘要:
存储过程存储过程在大新数据库系统中,一组为了完成特定功能的SQL语句集 存储在SQL数据库中 优势: SQL进行封装 调用方便 存储过程会进行编译 提升用户执行SQL语句集的速度 系统管理员 通过执行某一存储过程的权限进行限制 ,能实现对相应数据的访问权限的限制 保障数据安全 # 创建存储过程 cr 阅读全文
posted @ 2019-12-23 15:06
阿里云的奥斯卡
阅读(1087)
评论(0)
推荐(0)
摘要:
zsql user/pasword@ip:port -c "show databases" # 展示一条sql语句 spool file_path 指定输出文件 可以为相对路径 spool off 保存执行结果 并关闭输出流 gsql 配置数据库服务器 gs_guc reload -Z coordi 阅读全文
posted @ 2019-12-23 11:33
阿里云的奥斯卡
阅读(377)
评论(0)
推荐(0)

浙公网安备 33010602011771号