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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:58:44+00:00 2026-06-08T15:58:44+00:00

SQL. I have created 1 procedure but I am not getting the desired output.

  • 0

SQL. I have created 1 procedure but I am not getting the desired output. My procedure is below:

--/
CREATE OR REPLACE procedure Update_TB_INTERACTLOG
IS
BEGIN
    FOR records in (select TNAME from tab where TNAME like 'TB_INTERACTLOG%' and TABTYPE = 'TABLE')
    LOOP
        dbms_output.put_line(records.TNAME||' modified');
    END LOOP;
END;
/

There are 7 records I am getting from select query.

This I am getting in Log Output.

13:10:02 [CREATE – 0 row(s), 0.031 secs] Command processed. No rows were affected
… 1 statement(s) executed, 0 row(s) affected, exec/fetch time: 0.031/0.000 sec [0 successful, 1 warnings, 0 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-08T15:58:46+00:00Added an answer on June 8, 2026 at 3:58 pm

    It looks as if you have created the procedure but not executed it. To execute it, run the following code:

    exec Update_TB_INTERACTLOG;
    

    Furthermore, you will need to turn on DBMS output in the tool you’re using to run it (unless it’s SQL*plus).

    And please not that the procedure wasn’t properly compiled (1 warnings). The procedure should probably end with:

    END Update_TB_INTERACTLOG;
    

    instead of:

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

Sidebar

Related Questions

I have the following SQL Server stored procedure : BEGIN TRAN CREATE TABLE #TempTable
I have this SQL now: CREATE PROCEDURE dbo.sel_Track_HitsLast30Days( @projectID int ) AS BEGIN DECLARE
I have a dynamic SQL statement I've created in a stored procedure. I need
I created and launch the SQLJ Java procedure (using SQL Developer). I have some
I have an SQL CREATE PROCEDURE statement that runs perfectly in my local SQL
I have a T-SQL stored procedure with the signature CREATE PROCEDURE MyProc @recordCount INT
I have created my database by this sql query: (CREATE DATABASE + DBName +
I have created an stored procedure in SQL Server 2008 and it contains the
I have created a stored procedure CREATE PROCEDURE GetCustomerWiseSales(@StartDate nvarchar(10), @EndDate nvarchar(10)) AS SELECT
I have created a stored procedure in SQL Server, which runs immediately from Management

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.