Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8311947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:59:07+00:00 2026-06-08T19:59:07+00:00

EDIT: Per request here is what’s happening in SQL*Plus EDIT 2: The issue was

  • 0

EDIT: Per request here is what’s happening in SQL*Plus
EDIT 2: The issue was the column name being a keyword
SQL> drop table comments;

Table Dropped.

SQL> create table comments (
 2 comment_id number not null,
 3 post_id number not null,
 4 user_id number not null,
 5 message varchar2(2500) not null,
 6 timestamp timestamp(6) not null);

Table Created

SQL> create sequence comment_seq
 2 start with 1
 3 increment by 1
 4 nomaxvalue;

Sequence Created

SQL> ed

Wrote file afiedt.buf //NOTEPAD OPENED UP

1 create or replace trigger comment_trigger
2      before insert on comments
3      for each row
4 begin
5     select comment_seq.nextval
6     into :new.comment_id
7     from dual;
8 end;
SQL> /

    ERROR at Line 2:
    ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-320: the declaration of the type of this expression is
    incomplete or malformed

    SQL> show errors
    No errors.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:59:11+00:00Added an answer on June 8, 2026 at 7:59 pm

    Assuming I correct the data types of the numeric columns (number(300) is not a valid data type), that code seems to work for me. If you’re getting an error, that implies that you are doing something other than what you’ve posted here.

    SQL> create table comments (
      2    comment_id number not null,
      3    post_id    number not null,
      4    user_id    number not null,
      5    message    varchar2(2500) not null,
      6    timestamp  timestamp(6) not null
      7  );
    
    Table created.
    
    SQL> create sequence comment_seq
      2  start with 1
      3  increment by 1
      4  nomaxvalue;
    
    Sequence created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create or replace trigger comment_trigger
      2    before insert on comments
      3    for each row
      4  begin
      5    select comment_seq.nextval
      6      into :new.comment_id
      7      from dual;
      8* end;
    SQL> /
    
    Trigger created.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT : Per Slaks $j('#banner-content img').each(function() { var link = $j('#page-tabs li a.' +
How do you edit a tab label, per tab, in GVim? You can do
I have a bit of a strange issue here. I created a custom control
EDIT 07/14 As Bill Burgess mentionned in a comment of his answer, this question
EDIT: I was an idiot. I simply had an image that was vertically long,
EDIT: See my answer below--> I am wanting to have a view that when
Edit (updated question) I have a simple C program: // it is not important
EDIT: iam using ajax to load text in my content that is why onload
Edit : Note that, as Daniel and latkin noted in an answer and a
EDIT : It turned out that this can only be done through an external

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.