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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:11:08+00:00 2026-06-17T17:11:08+00:00

If I write: Select DUMMY from DUAL; it’s displayed as follows: D – X

  • 0

If I write:

Select DUMMY from DUAL;

it’s displayed as follows:

D
-
X

Why is the column name ‘D’ here ? Why not the full “DUMMY”? How can I get the result to display as follows?

Dummy
-----
  X

The above problem is now solved. Now, what would be done if we want back to its default ?

    col dummy format a1;
    insert into tab values('a');
    insert into tab values('ank');
    select * from tab;

The Output is :

    D
    -
    a
    a
    n
    k                                                                   

This ‘Dummy’ column is NOT from Dual table. Its my own created table ‘tab’.

  • 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-17T17:11:10+00:00Added an answer on June 17, 2026 at 5:11 pm

    SQL*Plus will format the column width to the size of the datatype. in the case of DUAL, DUMMY is a varchar2(1). you can control this with

    col DUMMY format a5
    

    ie:

    SQL> select * from dual;
    
    D
    -
    X
    
    SQL> col DUMMY format a5
    SQL> select * from dual;
    
    DUMMY
    -----
    X
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write a SELECT statement as follows: SELECT field_a FROM my_table WHERE
Can I write the T-SQL like below select * FROM (select * from TableA
In SQL I can write SELECT blah FROM Clients Where @p1 Like '%'+lastname+'%' How
According to SQLite documentation I can write: SELECT * FROM docs WHERE docs MATCH
One of my database table columns have name like 'name@from' how can i write
I write named query like this <query name=GET_QUESTIONS_BY_TEST_ID>select tq from TestQuestion as tq inner
So I have this SQL query, <named-query name=NQ::job_exists> <query> select 0 from dual where
In SQL I can write SELECT a.*, b.* FROM master_table a LEFT JOIN detail_table
In pure postgres we can write: SELECT * FROM my_table WHERE 10000 = ANY
In Oracle PL/SQL I was used to write: SELECT * FROM MY_TABLE WHERE ROWNUM

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.