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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:30:49+00:00 2026-06-15T17:30:49+00:00

Well, i’ve been trying to built a SP in order to help me get

  • 0

Well, i’ve been trying to built a SP in order to help me get all the fields from a table called TIKEt here is my table TIKET:

TABLE TIKET: 
IDTIKET    TYPE NUMBER
NOMBRE   TYPE VARCHAR2
EDITORIAL TYPE VARCHAR2
AUTOR  TYPE VARCHAR2
EDICION  TYPE VARCHAR2
PRECIO  TYPE NUMBER
CANTIDAD TYPE NUMBER,
FECHA  TYPE DATE default sysdate
NOMBRE_USER  TYPE VARCHAR2

and here it’s my SP code:

`create or replace procedure get_tiket
(
 idtiket_ out number,
 nombres_ out varchar2,
 editorial_ out varchar2,
 autor_ out varchar2,
 edicion_ out varchar2,
 precio_ out number,
 cantidad_ out number,
 fecha_ out date,
 nombre_user_ in varchar2
)
is 
begin
select idtiket, nombre, editorial, autor, edicion, precio, cantidad, fecha into idtiket_, nombres_, editorial_, autor_, edicion_, precio_, cantidad_, fecha_ from tiket
where nombre_user=nombre_user_;
end;

/`

When i run this code in SQLPLus says: “Procedure Created” which i think means it’s ok right? But when i called this Sp: exec get_tiket(‘ale’); it gives me this error:

call get_tiket('ale');

ERROR at line 1:

ORA-06553: PLS-306: wrong number or types of arguments in call to ‘GET_TIKET’

What i want is to get all the fields from table TIKET depending on the user i need! Please thanks for your help ahead!

  • 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-15T17:30:50+00:00Added an answer on June 15, 2026 at 5:30 pm

    You have bunch of out parameters in stored procedure, and you have to pass them as well :

    DECLARE idtiket number;
    -- other variables
    BEGIN
      EXEC get_tiket(idtiket, ..... 'ale');
    END; 
    

    Also, I guess function will work better than procedure in this case…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, title explains all. I'm trying to get rid of the highlight that comes
Well I have a 50000+ row table so I can't load all rows into
Well here is my problem: I have a table with an iframe in the
Well, I downloaded Rijndael sources from here: http://www.codeproject.com/Articles/1380/A-C-Implementation-of-the-Rijndael-Encryption-Decr I have the following code: int
Well, i have such-like code that prevent select all action from keyboard: $(document).keydown(function(e){ //
Well, i need to check if some fields are empty when submiting get an
Well, my website can not redirect to https://www.facebook.com/QuaFootSpa from http://quafootspa.com/ I have tried redirection
Well, i took a break from RoR for studies, now I am back, I
well, I am trying to include a header file in my project, while the
Well, i want house image to rotate from -5° to 5° and i wrote

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.