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

  • Home
  • SEARCH
  • 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 4247420
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:06:17+00:00 2026-05-21T04:06:17+00:00

I have created this view in DB2 LUW: CREATE VIEW SCHEMA.TYPE(TYPEID, TYPENAME) AS SELECT

  • 0

I have created this view in DB2 LUW:

CREATE VIEW SCHEMA.TYPE(TYPEID, TYPENAME) AS
SELECT TYPEID, TYPENAME
  FROM TABLE(VALUES(0,'A'),
                   (1,'B'),
                   (2,'C'),
                   (3,'D'),
                   (4,'E'),
                   (5,'F')) T(TYPEID, TYPENAME)

I’d like to move this same view to an Oracle database (10g).
I found that TABLE exists in Oracle, but the VALUES function does not.

Would you have an idea how to transform the view?

Thank you

  • 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-21T04:06:18+00:00Added an answer on May 21, 2026 at 4:06 am

    The only thing I came up with is:

    CREATE VIEW SCHEMA.TYPE(TYPEID, TYPENAME)
    AS
    SELECT 0,'A' FROM DUAL
    UNION
    SELECT 1,'B' FROM DUAL
    UNION
    SELECT 2,'C' FROM DUAL
    UNION
    SELECT 3,'D' FROM DUAL
    UNION
    SELECT 4,'E' FROM DUAL
    UNION
    SELECT 5,'F' FROM DUAL
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ISAm table in mySql that was created similar to this: create
I have a table that is created in a DataList in ASP.Net. This table
I have a table similar to this: CREATE TABLE example ( id integer primary
I have created this file at My/View/Helper/FormElement.php <?php abstract class My_View_Helper_FormElement extends Zend_View_Helper_FormElement {
i have created one view Controller(A) and this controller is using as a view
I have created a grouped table view & I had a edit button in
I have created an web service I need to publish this service. I need
I have created an Excel 2003 add-in that uses the CLR 2.0 and this
I have created a basic WCF service in IIS. I am aware that this
Ok so I have this regex that I created and it works fine in

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.