How to create DB2 user function easily by DB Query Analyzer 6.03
How to create DB2user function easily by DB Query Analyzer 6.03
Ma Genfeng
(Guangdong Unitoll Servicesincorporated, Guangzhou510300)
Abstract The latest version of DB QueryAnalyzer is 6.03 In DB Query Analyzer 6.03, without changing any Windows OS settings or configurations, it can run on any Microsoft Windows OS directly such as Windows10, Windows 8, Windows 7, Windows Vista, Windows 2003, Windows XP, Windows2000, Windows NT, Windows ME, Windows 9X.
This essay gives a demonstration of creating DB2 user function easily by DB Query Analyzer. And also the creating process of stored procedure has no difference with that of function. What’s more, the process of creating user function is also applicable to other DBMS, in which comma is the default separator character between SQL statements.
Key words DBQuery Analyzer
1 Brief introductionof DB Query Analzyer
DB Query Analyzer is presented by Master Genfeng, Ma from Chinese Mainland. It has English version named ‘DBQuery Analyzer’ and Simplified Chinese version named .
DB Query Analyzer is one of the few excellent Client Tools in the world for its’ powerful function,friendly interface, easy operation and applicability to every production of RDBMS.
It lets you query ODBC data sources, author SQL scripts and queries, return query results to a grid or free-form text or a file, retrieve ODBC driver information, execute multiple SQL scripts or stored procedures simultaneously,save the result to files with high efficiency which is as quick as tools provided by database system. What is more, from 6.01, DB Query Analyzer provides SQL Execute Schedule function to execute SQL scripts in certain time.If you select the option ‘SQL Schedule Reconnect’ in window configurations, the Schedule SQL scripts will be executed as long as the Database Server is in use,even though the Database Server had been down.
In DB Query Analyzer 6.03, without changing any Windows OS settings or configurations, it can run on any Microsoft Windows OS directly such as Windows10, Windows 8, Windows 7, Windows Vista, Windows 2003, Windows XP, Windows2000, Windows NT, Windows ME, Windows 9X.
Achievementof DB Query Analyzer
In the New products& Tools reviews of programmer second issue of 2007, DB Query Analyzer hadbeen strongly recommended.
Now the Simplified Chinese version of DB Query Analyzer is the top 50 database application software in the famous software website Preface
In this essay I will demonstrate how to create DB2 user functioneasily by DB Query Analyzer 6.03, and also the creating process of storedprocedure has no difference with that of function. What’s more, the process ofcreating user function is also applicable to other DBMS, in which comma is the separatorcharacter between SQL statements.
OS : Windows 8.1
Database system :DB2
Client tool : DBQuery Analyzer 6.03.
3 How to downloadthe installation packages of DB Query Analyzer from ZOL
Recently,Zhongguancun Online distributed the ZOL Downer for users to download theresources from ZOL. In this case, users can just download the ZOL downer withthe code of resources, not the installation packages.
But if someonewant to install the PC which is isolated from the INTERNET, he or she will nolonger do that.
So how do theusers download the installation packages? Please see the eassy bellow
How to downloadthe installation package by ZOL Downer
http://blog.csdn.net/magenfeng/article/details/38750901
4 Log in DB2database
Figure 1 Log in ODBC DSN UNIT2_1
5 Create DB2 user function
Figure 2 Input SQL statment tocreate DB2 user function
Figure 3 Execute SQL statments above,errors occur
Figure 4 Alter the seperatorcharacter from comma to $$
Only in the newwindow can the setting take effect, so create a new window firstly, then youcan see the separator character is set to $$ in the right bottom of status barin Figure 5.
Figure 5 Open a new window to create userfunction
Figure 6 Paste SQL statement from window Untitled-1
Figure 7 Execute SQL statement
Figure 8 Execute function created using sample data for testing
Figure 9 This SQL statement is a sample I used in areal complex work
Figure 10 Result return from DB2 DBMS
6 77 technical articles about DB Query Analyzerhave been published or been publishing in computer journal, Baidu Library, the CSDN resource or my fourblog-website.
The following 6 articles have been publishedin computer journal.
DBQuery Analyzer to cancel a running SQL statement in Computer Era 12th issue of 2011 in Hangzhou.
DBQuery Analyzer Returns Information in More Detail While Batch SQL Statement Endof Execution in Computer Programming Skill & Maintenance 24th issue of 2011 in Beijing
TheApplication of the Transactions Control in DB2 with DB Query Analyzer in ComputerProgramming Skill & Maintenance 22nd issue of 2011 in Beijing.
Howdoes DB Query Analyzer cancel the SQL statement committed to DBMS in ComputerEngineering & Software 6th issue of 2011 in Tianjin.
TheApplication of the Transactions Control in Oracle with DB Query Analyzer inMicrocomputer Applications11th issue of 2011 in Shanghai.
DB Query Analyzer had been stronglyrecommended In the New products & Tools reviews of programmer 2nd issue of2007.
The following 71 articles have been publishedor been publishing in Baidu Library, the CSDN resource or my four blog-website.
TheDBMS that DB Query Analyzer Users often use cover all kinds of DBMS have beenpublished.
Howto configure ODBC DSN in Client to access remote DB2 for Windows
Howto configure ODBC DSN to access local DB2 for Windows
WhichSQL statement is the trump card to the senior software developer
Exepacker prevent DB Query Analyzer from beging debugged have been published.
16articles from The 1st tip of DB Query Analyze to The 16th skills of DB QueryAnalyzer have been published.
Thetable name must be enclosed in double quotation marks or sqare bracket whileaccessing EXCEL by DB Query Analyzer
Howto download the installation package by ZOL Downer
DBQuery Analyzer, the most excellent Universal database Access tools on anyMicrosoft Windows OS
Demonstrationof DB Query Analyzer 6.03 Installation and Running on Microsoft Windows 8
Howto easily create DB2 user function by DB Query Analyzer 6.03
DBQuery Analyzer 6.03 download URL:
http://xiazai.zol.com.cn/detail/43/420901.shtml
http://www.unitedpowersoft.com/UpFile/DBQueryAnalyzer_English_603.rar
DB Query Analyzer Simplified Chinese version 6.03 downloadURL:
http://xiazai.zol.com.cn/detail/27/264455.shtml
Remarks :
Pleaseuninstall the former version first, then install the latest version.
My blog are http://blog.csdn.net/magenfeng
http://blog.sina.com.cn/magenfeng
http://user.qzone.qq.com/630414817
Interview with CSDN: http://www.csdn.net/article/2014-08-09/2821124
How to create DB2 user function easily by DB Query Analyzer 6.03的更多相关文章
- DB Query Analyzer 6.01 is released, SQL Execute Schedule function can be used
DB Query Analyzer is presented by Master Gen feng, Ma from Chinese Mainland. It has English versi ...
- DB2创建function(二)
DB2创建function(一),介绍将function内容作为字段值,或做为一个where条件的情况. DB2创建function(二),介绍返回的内容为一个集合的情况.调用结果集的示例如下: se ...
- DB2创建function(一)
案例一:根据传入的值返回一个满足条件的值.适用于查询的字段(经过较复杂逻辑得出) CREATE FUNCTION "FAS"."GET_ALL_NAME" ( ...
- GreenPlum学习笔记:create or replace function创建函数
原始表数据如下: 需求:现要求按分号“;”将rate_item列进行分割后插入到新的数据表中. CREATE OR REPLACE FUNCTION fun_gp_test_xxx_20181026( ...
- CREATE OR REPLACE FUNCTION
CREATE OR REPLACE FUNCTION SF_Taishou_Ksai_Date(v_receiptNum IN CHAR, ...
- MySQL 5.7 create VIEW or FUNCTION or PROCEDURE
1.视图 a. CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY INVOKER VIEW `sakila` ...
- How can I create an Asynchronous function in Javascript?
哈哈:)我的codepen 的代码笔记是:http://codepen.io/shinewaker/pen/eBwPxJ --------------------------------------- ...
- Azure - Create your first function using Visual Studio
Azure Functions lets you execute your code in a serverless environment without having to first creat ...
- db2 创建function报错
create function fun_fw_sfyczy(pi_operunitid varchar(2)) returns varchar(2)LANGUAGE SQL BEGIN ATOMIC ...
随机推荐
- 1. 两数之和 LeetCode
给定一个整数数组和一个目标值,找出数组中和为目标值的两个数. 你可以假设每个输入只对应一种答案,且同样的元素不能被重复利用. 示例: 给定 nums = [, , , ], target = 因为 n ...
- ACM Ignatius and the Princess I
公主被BEelzebub feng5166绑架,我们的英雄Ignatius必须拯救我们美丽的公主. 现在他进入feng5166的城堡.城堡是一个大迷宫.为简单起见,( To make the prob ...
- 【机器学习】从SVM到SVR
注:最近在工作中,高频率的接触到了SVM模型,而且还有使用SVM模型做回归的情况,即SVR.另外考虑到自己从第一次知道这个模型到现在也差不多两年时间了,从最开始的腾云驾雾到现在有了一点直观的认识,花费 ...
- ROS机器人程序设计(原书第2版)补充资料 kinetic
Effective Robotics Programming with ROS Third Edition Find out everything you need to know to build ...
- let内嵌lambda使用set!构成闭包
查了半天没有找到scheme中判断数据类型的函数,索性自己写了个type?,发现闭包和递归有着微妙的联系. 本例中,自由变量是types,外层let初始化了types的值,内层let里的(set! t ...
- Android开发技巧——定制仿微信图片裁剪控件
拍照--裁剪,或者是选择图片--裁剪,是我们设置头像或上传图片时经常需要的一组操作.上篇讲了Camera的使用,这篇讲一下我对图片裁剪的实现. 背景 下面的需求都来自产品. 裁剪图片要像微信那样,拖动 ...
- Quartz学习笔记1:Quartz概述
Quartz是开源任务调度框架中的翘楚,它提供了强大的 任务调度机制.Quartz允许开发人员灵活的定义触发器的调度时间表,并可对触发器和任务进行关联映射.此外,Quartz提供了调度运行环境的持久化 ...
- Android 5.0 调色 Palette调色功能
Palette非常好用,也非常好玩. Palette的作用是从图像中提取突出的颜色,这样我们可以根据提取到的色值把它赋给Toolbar,标题,状态栏等,可以使我们的整个界面色调统一,效果非常好看. P ...
- Android简易实战教程--第三十五话《音乐播放》
已经好几天不更新博客了,今天轻松一点模拟个简单的"音乐播放器".1分钟看完~ 整个简单布局,加几个控制按钮: <LinearLayout xmlns:android=&quo ...
- 如何使用Live CD来修复Grub / Grub2
Introduction 一般我会在计算机上装两个或者多个系统,例如,我在计算机上安装了Ubuntu.Windows 7.Windows 8.1.有一天我的Win8.1不能正常使用了,我想重新安装Wi ...