oracle
qq_33765174
这个作者很懒,什么都没留下…
展开
-
oracle存储过程,select表无数据(no_data_found)时赋值给变量。
begin select e.barcode into xbarcode from (select t.itemnumber,t.barcode, row_number() OVER(PARTITION BY itemnumber ORDER BY t.itemnumber desc) as row_flg ...原创 2018-07-25 11:50:15 · 2258 阅读 · 1 评论 -
表中同一个字段对应不同数据,select其中一条
select e.barcode from (select t.itemnumber,t.barcode, row_number() OVER(PARTITION BY itemnumber ORDER BY t.itemnumber desc) as row_flg from itemb...原创 2018-07-25 12:37:15 · 927 阅读 · 0 评论