db2创建存储过程 如何执行db2存储过程?
如何执行db2存储过程?1. DB2创建数据库名称调用存储过程名称(参数1,参数2)5。验证数据插入是否成功。在Windows下:DB2 select count(*)from ftotp DB2 s
如何执行db2存储过程?
1. DB2创建数据库名称调用存储过程名称(参数1,参数2)5。验证数据插入是否成功。在Windows下:DB2 select count(*)from ftotp DB2 select count(*)from ftotp in USINFOIX DB2 select count(*)from ftotp in userinfo Windows TOKENFOIX下:DB2 select count(*)from ftotp 1。DB2创建数据库名
2。DB2连接到数据库名称用户名使用用户密码
3。DB2-tvf otpdbuv3udb2。SQL
4。DB2-TD@-f存储过程文件绝对路径
4。调用存储过程:
windows:DB2 call storage procedure name(参数1,参数2)
AIX:DB2
DB2=>call storage procedure name(参数1,参数2)
5。正在验证插入数据是否成功
windows:DB2 select count(*)from ftotp In AIX:DB2
DB2=>select count(*)from ftotp In windows:DB2 select count(*)from ftotp In AIX:DB2
DB2=>select count(*)from ftotp In TOKENINFO