troubleshooting Question

Oracle Objects and using dot notation

Avatar of talahi
talahi asked on
Oracle Database
4 Comments1 Solution474 ViewsLast Modified:
I'm trying to understand how to use objects in Oracle and curious why the following example doesn't work.  Or what is missing that would make it work using Objects and dot notation.

create table comments_table
(dat date,
 comments varchar2(200));

  type ser_table is table of varchar2(10) index by binary_integer;
  ser_list   ser_table;
  temp_count integer := 0;
  ser_list(1) := 'TEST 1';
  ser_list(2) := 'TEST 2';
  ser_list(3) := 'TEST 3';

  -- Doesn't work
  insert into comments_table(dat,comments) values(sysdate,ser_list.count||' records inserted.');

  -- Does work
  temp_count := ser_list.count;
  insert into comments_table(dat,comments) values(sysdate,temp_count||' records inserted.');


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros