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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:36:47+00:00 2026-05-30T02:36:47+00:00

CREATE QUERY ohQuery. ohQuery:SET-BUFFERS(hBuffer). OhQuery:QUERY-PREPARE(FOR EACH + ip-tablename ). ohQuery:QUERY-OPEN(). ohQuery:GET-FIRST(). ip-tablename = value

  • 0
CREATE QUERY ohQuery.
ohQuery:SET-BUFFERS(hBuffer).

OhQuery:QUERY-PREPARE("FOR EACH " + ip-tablename ).
ohQuery:QUERY-OPEN().
ohQuery:GET-FIRST().

ip-tablename = value from UI (combo box)

Now I need to create a temp-table for this query. How to create?

If I am using create-like method what value should I pass in this?

  • 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-30T02:36:49+00:00Added an answer on May 30, 2026 at 2:36 am

    To create a temp-table dynamically at runtime, you need either a handle to a buffer of said table, or the table-name itself. Seeing as you already have the handle to the buffer of ‘ip-tablename’ (I am assuming hBuffer is a buffer to the table with name ‘ip-tablename’, otherwise your above statement won’t work), you should use that handle instead of ‘just’ the table-name out of performance reasons. Here’s how to do it:

    DEF VAR ttH AS HANDLE NO-UNDO.
    ttH:CREATE-LIKE(hBuffer).
    

    Optionally, you can also use ‘ip-tablename’ for the create-like method, although it doesn’t perform as well:

    ttH:CREATE-LIKE(ip-tablename).
    

    Don’t forget that you’ll need to use the temp-table prepare method before you can use your new temp-table:

    ttH:TEMP-TABLE-PREPARE("myNewTempTable").
    

    Hope that helps!

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

Sidebar

Related Questions

Here is my issue: CREATE QUERY hQuery. hQuery:SET-BUFFERS(hBuffer). hQuery:QUERY-PREPARE(/*my conditions*/). hQuery:QUERY-OPEN(). hBuffer is my
I'm trying to create a query with the Criteria API from JPA 2.0, but
Is there any way to create the query parameters for doing a GET request
i wonder what this query means: $blogPost = Doctrine_Query::create()->from('BlogPost p')->where('p.slug = ?', 'doctrine-released')->execute(); could
I want to create this query: select Something, count(Something) as Num_Of_Times from tbl_results group
I am building an ObjectQuery like this: string query = select value obj from
in php i'm using GET to create query string which launches an action :
I'd like to create query like this with QueryDSL update WorkMessage w set w.totalPrice
I need to create query like (i'm using PostgreSQL): (SELECT * FROM t1 WHERE
This is how I get a Hibernate Session and create query. HSession.getSession().createQuery(query here).executeUpdate(); AND

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.