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 just created this table: create table dbo.OrderTypes ( ID smallint primary key
SQL 2008 : I have created a View ( select * from VW_Test1 ).
Im create this code to store page view in database, but i have problem
I have created this report using BIRT and phpjavabridge <?php header(Content-type: application/pdf); header(Content-Disposition: inline;
I have created my database by this sql query: (CREATE DATABASE + DBName +
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 views on the SQL Server 2005 database and this view is
I have app to create a graph i have created a view based app
I have created a view to list the page content type(title, teaser and image)..
I have the following little bit of MySQL code CREATE VIEW UserResults AS SELECT

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.