Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常,我应该做类似的事情
my_record my_table%ROWTYPE; cursor c1 (bla bla) is select * from my_tables...
但是如果我有类似的东西会发生什么
select b.*, c.col1, c.col2 from my_table b, mytable1 c ...
如何定义一个my_record my_table%ROWTYPE具有我需要的列的对象?
my_record my_table%ROWTYPE
如果您使用的是游标,则只需在游标之后将变量声明为
my_record c1%rowtype;