zoukankan      html  css  js  c++  java
  • DB2带UPDATE,INSERT语句的函数

    带UPDATE,INSERT 语句的函数返回值应该是一个TABLE
    如:RETURNS TABLE(COL VARCHAR(36))
    函数中返回应该: return   select NEWID from sysibm.sysdummy1;
    在调用时例子:
    select * from table(UF_GETID('RE')) as t

    创建ID函数:
    Code

    调用这个执行这个函数:
    select * from table(UF_GETID('RE')) as t
  • 相关阅读:
    topcoder srm 445 div1
    topcoder srm 440 div1
    topcoder srm 435 div1
    topcoder srm 430 div1
    topcoder srm 400 div1
    topcoder srm 380 div1
    topcoder srm 370 div1
    topcoder srm 425 div1
    WKWebView强大的新特性
    Runtime那些事
  • 原文地址:https://www.cnblogs.com/bayker/p/1562280.html
Copyright © 2011-2022 走看看