0

when insert values into table the values are displayed unclear here is the create statement

CREATE TABLE DEPARTMENTMANAGER(
MANAGER_ID INTEGER,
LAST_NAME VARCHAR(50),
FIRST_NAME VARCHAR(50),
PHONE_NUMBER INTEGER,
SSN INTEGER,
PRIMARY KEY (MANAGER_ID)
);
INSERT INTO DEPARTMENTMANAGER
VALUES
(120.'TOM','JERRY',2233445,109-38-2483);

SELECT * FROM DEPARTMENTMANAGER;

The data which I have inserted is displaying in random way:

enter image description here

2
  • Take some time to present your question, so others can understand. What do you mean by random way? Were you expecting it in any other way given you have just one row? Commented Dec 6, 2015 at 15:50
  • Just click on the top-left corner of your DOS command window, Properties -> Layout, set screen buffer size width and height to something bigger like 500. Then you can see the output more clearly. Commented Dec 6, 2015 at 16:09

2 Answers 2

1

After you create a table run the below line to fix the issue.

set linesize 200;

Sign up to request clarification or add additional context in comments.

1 Comment

i need to set to 500 to work on mine :) thanks
0

There is no problem with your data. The problem is with a way that result is presented to you.

Your client program, you use to connect to DB, does not have enough width so header and data are wrapped.

You can change the width and/or change the font size in your terminal.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.