How can store sqlplus query in a file in formatted manner and display it to console?

Let’s learn how can store sqlplus query in a file in formatted manner and display it to console. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

How can store sqlplus query in a file in formatted manner and display it to console up vote

I am trying to write a script which will connect to database and store the query output in a file in formatted manner My expected file would be something like below: LAST MONTHLY NAME SALARY COMMISSION ------------------------- ---------- ---------- Russell 14000 .4 Partners 13500 .3 Errazuriz 12000 .3 Cambrault 11000 .3 Zlotkey 10500 .2 So far I have tried this. sqlplus user/password@(TNS Entry) << EOF SET head OFF; SET feed OFF; SET trimspool ON; SET linesize 32767; SET pagesize 3...

Answer:

You need to add in the , seperator yourself e.g. sqlplus user/password@(TNS Entry) << EOF SET...

Read more

shubham deodia at Stack Overflow Mark as irrelevant Undo

Other solutions

Is it possible to export the results of a query in the rails console in a manner that would easily allow for it's import into the database later?

Pretty much what it sounds like.  How can I get query results into seed data (query meaning a simple Article.all in the console). I could write a method to do this but was wondering what was the easiest solution.

Answer:

There's a gem that, by the looks of it, does exactly what you want - https://github.com/rhalff/seed...

Read more

Tanel Suurhans at Quora Mark as irrelevant Undo

ON MSN messenger, if you take a display picture using webcam where does your computer store the image file?

I'm attempting to save a picture that I took as a display picture to my computer. But, on MSN the only option is to change the picture or browse. I feel like I've looked ...show more

Answer:

You should be able to actually "tell" your computer where to store those files... Well, look...

Read more

VUW6D7JNZ67YO6AOCJ6VTX2J3Q at Yahoo! Answers Mark as irrelevant Undo

How to store structure elements in text file and display elements back on the screen? (c++) problem?

structure includes name,age,sex,height....etc actually i am success-full in writing these structure elements in .txt file but there is a problem while displaying back on the screen. please help me.....thank you........

Answer:

May be check the following working program and change your accordingly #include<iostream> #include...

Read more

James Bond at Yahoo! Answers Mark as irrelevant Undo

Extracting data

QUESTION: Thanks for your help I finally managed to make all the changes and now it's working fine. Could you please help me so that when the user clicks the button it opens the file automatically using a file location rather than "FD" File...

Answer:

Srinivasa, Thank you for the more thorough explanation. I will study tomorrow and try to offer a solution...

Read more

Miningco.com Mark as irrelevant Undo

WildCARD search using lucene in a large file containing 100 millions Strings taking too much time. i want the result in 1-2 seconds. any help?

I have a file size 1.43 gb. the file contains 100 millions strings ( 3 - 80 characters length) separated line by line in the file. i am doing WILDCARD search on the file using lucene. right now i am creating one document for each string. i want total...

Answer:

a. I believe the problem is your using a KeywordAnalyzer. This means each of your 100 million strings...

Read more

Yuval Feinstein at Quora Mark as irrelevant Undo

SQLplus query needed

First dibs on this question must go to Mathtalk, the author of the comments that go me this far. I would understand if they are not interested, but I do feel like I have to compensate him or her somehow. I need a query to build a map of gene collisions...

Answer:

Hi, iterative-ga: Let's outline the steps to take, and then go into the details (see below). 1. Create...

Read more

iterative-ga at Google Answers Mark as irrelevant Undo

How to display a transcript in sync with a media file?

I have a transcript with timestamps and a media file. How do I display both of them on a webpage at the same time, synchronized? Oh, and it has to work in any browser or OS. I have a transcript (foo.txt) composed of 1000 sentences. Each sentence is given...

Answer:

SMIL is good for that. I have used it for the exact situation you described, with text synchronized...

Read more

isnotchicago at Ask.Metafilter.Com Mark as irrelevant Undo

How to store the results of a SELECT query in an existing table?

I am doing a database project for my IT A-Level and I need to create an electronic register. I have a query that does work, it searches through a table where the Students are assigned to Classes (uniquely identified by an Assign ID) by a Class ID that...

Answer:

Use INSERT ... SELECT sytnax: http://www.sql-tutorial.ru/en/book_opera…

Read more

Tom Williams at Yahoo! Answers Mark as irrelevant Undo

How to efficiently store data in hive?

How can I efficiently store data in Hive and also store and retrieve compressed data in hive? Currently I am storing it as a TextFile. I was going through [Bejoy article](http://kickstarthadoop.blogspot....) and I found that LZO compression will be good...

Answer:

You can use ORC File format as the underlying file format for Hive. This format has several advantages...

Read more

Gautam P Hegde at Quora Mark as irrelevant Undo

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.