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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:13:18+00:00 2026-06-07T18:13:18+00:00

When returning data from a sqlplus session, I generally use the following set commands

  • 0

When returning data from a sqlplus session, I generally use the following set commands to suppress everything except the data.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options

SQL> select sysdate from dual;

SYSDATE
---------
13-JUL-12

SQL> set pagesize 0 feedback off ver off heading off echo off;
SQL> select sysdate from dual;
13-JUL-12

But when trying to get data from a sequence, looks like a tab is being added automatically.
Is there another sqlplus parameter that needs to be set?

SQL> select test_seq.nextval from dual;
         2


SQL>
  • 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-07T18:13:20+00:00Added an answer on June 7, 2026 at 6:13 pm

    You can set tab off, but that isn’t quite the issue – you’ll just get spaces instead of tabs. The sequence value is a number, and SQL*Plus left-pads numbers to the width of the column. If you were showing headers you’d see it aligned with the right-most character of the heading for the (pseudo-)column.

    The easiest way to stop it, since you don’t know the size of the value and so can’t really set a format mask with the desired number of characters, is just to do:

    select to_char(test_seq.nextval) as my_val from dual;
    

    If you’re selecting more than one column you’ll still get multiple spaces between each value though.

    Edited to add: Actually that’s not quite complete. You can also set numformat with a format mask, which I obliquely referred to; and can also set numwidth. But numwidth has to be at least 2, so you’ll still get one space before a single-digit number (to allow for a sign, I think); and if the number has too many digits it will display # instead. And if the column title is longer than numwidth it’ll still left-pad to that anyway. More info here.

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

Sidebar

Related Questions

When returning data from a DataReader I would typically use the ordinal reference on
I'm using the following to surface data from Oracle: http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/EntityFrameworkWCF/WCFEntityFramework.htm I have 2 WCF
I am returning data from a sqlite3 database the some else wrote. I am
I'm returning data from a HttpGet and then passing the string(s) into a Listview
Hey guys. I'm building a simple blog and have my data returning from my
I'm calling a web service and returning the following data in JSON format: [{OrderNumber:12345,CustomerId:555}]
I have always used XML for returning data from my servlets and i have
I am getting the following error when retrieving data from a rest data source
I am having trouble returning data from my sql-server database to an aspx page
What is the best practice when returning data from functions. Is it better to

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.