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 6030483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:02:36+00:00 2026-05-23T05:02:36+00:00

I can get what am I doing wrong here create or replace procedure load_category(

  • 0

I can get what am I doing wrong here

create or replace procedure load_category(
p_linea_cod varchar2,
p_modal_cod varchar2,
p_periodo_cod varchar2
)IS

BEGIN
  insert into category(categoryid,externalcategoryid,name)values(
  SEQ_CATEGORY.nextval,
  (select  cod_modal_est,nombre
     from modalidad_estud@ULINK
     where cod_linea_negocio = p_linea_cod
     and cod_modal_est = p_modal_cod)
  );

END;

I’m trying to make a simple insert with a sequence and a select statement(working statement), but can get it work, just receiving this error:

ORA-00947: not enough values

I thank your help in advance.

  • 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-05-23T05:02:36+00:00Added an answer on May 23, 2026 at 5:02 am

    Your select returns only one column, while you’re inserting three. If you need to leave them empty, add NULL values to the select, or leave the columns out of the insert field list.

    [edit]

    Modified query:

    insert into category(categoryid, externalcategoryid, name)
    select 
      SEQ_CATEGORY.nextval, cod_modal_est, nombre
    from 
      modalidad_estud@ULINK
    where 
      cod_linea_negocio = p_linea_cod
      and cod_modal_est = p_modal_cod;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't seem to figure out what I am doing wrong here. I have
Can anyone see what Im doing wrong here? I know it is a lot
what am I doing wrong here? I'm trying to create a DataTemplate using a
Here I have a stored procedure in Oracle: CREATE OR REPLACE PROCEDURE StP_COMPS IS
I know I can get the public static members of a class by doing
I can't seem to get a custom action working. I might be doing this
I'm doing in-line edits on a grid, but can't seem to get any events
can you tell me how this line works.... my OperatorFactory.get(add) is not doing anything.
I hope someone can point out where I'm going wrong here. I'm trying to
I'm using EF4.1 Code First. I can't get a very simple insert to save

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.